Skip to content

Commit

Permalink
Use PEP 570 syntax in comments (#11552)
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored Mar 9, 2024
1 parent 470a13a commit 2d146e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stdlib/_decimal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Context:
# even settable attributes like `prec` and `rounding`,
# but that's inexpressable in the stub.
# Type checkers either ignore it or misinterpret it
# if you add a `def __delattr__(self, __name: str) -> NoReturn` method to the stub
# if you add a `def __delattr__(self, name: str, /) -> NoReturn` method to the stub
prec: int
rounding: str
Emin: int
Expand Down
2 changes: 1 addition & 1 deletion stdlib/_typeshed/dbapi.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DBAPICursor(Protocol):
@property
def rowcount(self) -> int: ...
# optional:
# def callproc(self, __procname: str, __parameters: Sequence[Any] = ...) -> Sequence[Any]: ...
# def callproc(self, procname: str, parameters: Sequence[Any] = ..., /) -> Sequence[Any]: ...
def close(self) -> object: ...
def execute(self, operation: str, parameters: Sequence[Any] | Mapping[str, Any] = ..., /) -> object: ...
def executemany(self, operation: str, seq_of_parameters: Sequence[Sequence[Any]], /) -> object: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/zipfile/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class _ZipStream(Protocol):
# The following methods are optional:
# def seekable(self) -> bool: ...
# def tell(self) -> int: ...
# def seek(self, __n: int) -> object: ...
# def seek(self, n: int, /) -> object: ...

# Stream shape as required by _EndRecData() and _EndRecData64().
class _SupportsReadSeekTell(Protocol):
Expand Down

0 comments on commit 2d146e7

Please sign in to comment.