Skip to content

Commit b316dd9

Browse files
authored
Bump flake8-pyi to 23.1.1 (#9599)
1 parent 32ebe32 commit b316dd9

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232
additional_dependencies:
3333
- "flake8-bugbear==23.1.14" # must match requirements-tests.txt
3434
- "flake8-noqa==1.3.0" # must match requirements-tests.txt
35-
- "flake8-pyi==23.1.0" # must match requirements-tests.txt
35+
- "flake8-pyi==23.1.1" # must match requirements-tests.txt
3636
- repo: https://github.com/pre-commit/mirrors-prettier
3737
rev: v3.0.0-alpha.4
3838
python_requirement: false

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ black==22.12.0 # must match .pre-commit-confi
33
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
44
flake8-bugbear==23.1.14; python_version >= "3.8" # must match .pre-commit-config.yaml
55
flake8-noqa==1.3.0; python_version >= "3.8" # must match .pre-commit-config.yaml
6-
flake8-pyi==23.1.0; python_version >= "3.8" # must match .pre-commit-config.yaml
6+
flake8-pyi==23.1.1; python_version >= "3.8" # must match .pre-commit-config.yaml
77
isort==5.11.4 # must match .pre-commit-config.yaml
88
mypy==0.991
99
packaging==23.0

stdlib/collections/__init__.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,18 @@ class UserString(Sequence[UserString]):
163163
def capitalize(self: Self) -> Self: ...
164164
def casefold(self: Self) -> Self: ...
165165
def center(self: Self, width: int, *args: Any) -> Self: ...
166-
def count(self, sub: str | UserString, start: int = 0, end: int = ...) -> int: ...
166+
def count(self, sub: str | UserString, start: int = 0, end: int = sys.maxsize) -> int: ...
167167
if sys.version_info >= (3, 8):
168168
def encode(self: UserString, encoding: str | None = "utf-8", errors: str | None = "strict") -> bytes: ...
169169
else:
170170
def encode(self: Self, encoding: str | None = ..., errors: str | None = ...) -> Self: ...
171171

172-
def endswith(self, suffix: str | tuple[str, ...], start: int | None = 0, end: int | None = ...) -> bool: ...
172+
def endswith(self, suffix: str | tuple[str, ...], start: int | None = 0, end: int | None = sys.maxsize) -> bool: ...
173173
def expandtabs(self: Self, tabsize: int = 8) -> Self: ...
174-
def find(self, sub: str | UserString, start: int = 0, end: int = ...) -> int: ...
174+
def find(self, sub: str | UserString, start: int = 0, end: int = sys.maxsize) -> int: ...
175175
def format(self, *args: Any, **kwds: Any) -> str: ...
176176
def format_map(self, mapping: Mapping[str, Any]) -> str: ...
177-
def index(self, sub: str, start: int = 0, end: int = ...) -> int: ...
177+
def index(self, sub: str, start: int = 0, end: int = sys.maxsize) -> int: ...
178178
def isalpha(self) -> bool: ...
179179
def isalnum(self) -> bool: ...
180180
def isdecimal(self) -> bool: ...
@@ -203,15 +203,15 @@ class UserString(Sequence[UserString]):
203203
def removesuffix(self: Self, __suffix: str | UserString) -> Self: ...
204204

205205
def replace(self: Self, old: str | UserString, new: str | UserString, maxsplit: int = -1) -> Self: ...
206-
def rfind(self, sub: str | UserString, start: int = 0, end: int = ...) -> int: ...
207-
def rindex(self, sub: str | UserString, start: int = 0, end: int = ...) -> int: ...
206+
def rfind(self, sub: str | UserString, start: int = 0, end: int = sys.maxsize) -> int: ...
207+
def rindex(self, sub: str | UserString, start: int = 0, end: int = sys.maxsize) -> int: ...
208208
def rjust(self: Self, width: int, *args: Any) -> Self: ...
209209
def rpartition(self, sep: str) -> tuple[str, str, str]: ...
210210
def rstrip(self: Self, chars: str | None = None) -> Self: ...
211211
def split(self, sep: str | None = None, maxsplit: int = -1) -> list[str]: ...
212212
def rsplit(self, sep: str | None = None, maxsplit: int = -1) -> list[str]: ...
213213
def splitlines(self, keepends: bool = False) -> list[str]: ...
214-
def startswith(self, prefix: str | tuple[str, ...], start: int | None = 0, end: int | None = ...) -> bool: ...
214+
def startswith(self, prefix: str | tuple[str, ...], start: int | None = 0, end: int | None = sys.maxsize) -> bool: ...
215215
def strip(self: Self, chars: str | None = None) -> Self: ...
216216
def swapcase(self: Self) -> Self: ...
217217
def title(self: Self) -> Self: ...

stdlib/lib2to3/pytree.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class NodePattern(BasePattern):
8383
class WildcardPattern(BasePattern):
8484
min: int
8585
max: int
86-
def __init__(self, content: str | None = None, min: int = 0, max: int = 2147483647, name: str | None = None) -> None: ...
86+
def __init__(self, content: str | None = None, min: int = 0, max: int = ..., name: str | None = None) -> None: ...
8787

8888
class NegatedPattern(BasePattern):
8989
def __init__(self, content: str | None = None) -> None: ...

stdlib/platform.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def java_ver(
3737
release: str = "", vendor: str = "", vminfo: tuple[str, str, str] = ..., osinfo: tuple[str, str, str] = ...
3838
) -> tuple[str, str, tuple[str, str, str], tuple[str, str, str]]: ...
3939
def system_alias(system: str, release: str, version: str) -> tuple[str, str, str]: ...
40-
def architecture(executable: str = ..., bits: str = "", linkage: str = "") -> tuple[str, str]: ...
40+
def architecture(executable: str = sys.executable, bits: str = "", linkage: str = "") -> tuple[str, str]: ...
4141

4242
class uname_result(NamedTuple):
4343
system: str

stdlib/smtpd.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SMTPChannel(asynchat.async_chat):
4141
server: SMTPServer,
4242
conn: socket.socket,
4343
addr: Any,
44-
data_size_limit: int = 33554432,
44+
data_size_limit: int = ...,
4545
map: asyncore._MapType | None = None,
4646
enable_SMTPUTF8: bool = False,
4747
decode_data: bool = False,
@@ -71,7 +71,7 @@ class SMTPServer(asyncore.dispatcher):
7171
self,
7272
localaddr: _Address,
7373
remoteaddr: _Address,
74-
data_size_limit: int = 33554432,
74+
data_size_limit: int = ...,
7575
map: asyncore._MapType | None = None,
7676
enable_SMTPUTF8: bool = False,
7777
decode_data: bool = False,

stdlib/xmlrpc/client.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def loads(
212212
data: str, use_datetime: bool = False, use_builtin_types: bool = False
213213
) -> tuple[tuple[_Marshallable, ...], str | None]: ...
214214
def gzip_encode(data: ReadableBuffer) -> bytes: ... # undocumented
215-
def gzip_decode(data: ReadableBuffer, max_decode: int = 20971520) -> bytes: ... # undocumented
215+
def gzip_decode(data: ReadableBuffer, max_decode: int = ...) -> bytes: ... # undocumented
216216

217217
class GzipDecodedResponse(gzip.GzipFile): # undocumented
218218

stubs/ldap3/ldap3/protocol/rfc4511.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from pyasn1.type.namedval import NamedValues
77
from pyasn1.type.tag import TagSet
88
from pyasn1.type.univ import Boolean, Choice, Enumerated, Integer, Null, OctetString, Sequence, SequenceOf, SetOf
99

10-
LDAP_MAX_INT: _Final = 2147483647
10+
LDAP_MAX_INT: _Final[int]
1111
MAXINT: _Final[Integer]
1212
rangeInt0ToMaxConstraint: ValueRangeConstraint
1313
rangeInt1To127Constraint: ValueRangeConstraint

0 commit comments

Comments
 (0)