bz2 stub exceptions (#5199)

This commit is contained in:
hatal175
2021-04-11 05:53:05 +03:00
committed by GitHub
parent 25bac1d716
commit b308c1f964
6 changed files with 16 additions and 14 deletions

View File

@@ -12,6 +12,7 @@ asyncio.staggered # Added in Python 3.8
asyncio.threads # Added in Python 3.9
asyncio.trsock # Added in Python 3.8
builtins.str.maketrans
bz2.BZ2Compressor.compress # does not accept keyword arguments even though signature says it does
cmath.log
collections.AsyncGenerator.ag_await
collections.AsyncGenerator.ag_code

View File

@@ -13,6 +13,7 @@ asyncio.threads # Added in Python 3.9
asyncio.trsock # Added in Python 3.8
builtins.dict.get
builtins.str.maketrans
bz2.BZ2Compressor.compress # does not accept keyword arguments even though signature says it does
cmath.log
collections.AsyncGenerator.ag_await
collections.AsyncGenerator.ag_code

View File

@@ -23,6 +23,7 @@ asyncio.run # Bugfix involving this was backported to 3.8
asyncio.runners.run # It just hasn't been released yet
asyncio.threads # Added in Python 3.9
builtins.dict.get
bz2.BZ2Compressor.compress # does not accept keyword arguments even though signature says it does
collections.AsyncGenerator.ag_await
collections.AsyncGenerator.ag_code
collections.AsyncGenerator.ag_frame

View File

@@ -135,11 +135,6 @@ xml.etree.cElementTree.XMLParser.__init__ # Defined in C so has general signatu
# positional-only complaints
builtins.bytearray.pop
builtins.bytearray.remove
bz2.BZ2Compressor.compress
bz2.BZ2File.read
bz2.BZ2File.read1
bz2.BZ2File.readline
bz2.BZ2File.seek
collections.AsyncGenerator.asend
collections.AsyncGenerator.athrow
collections.Container.__contains__

View File

@@ -73,11 +73,7 @@ builtins.property.fset
builtins.reversed # not a function at runtime
builtins.staticmethod.__get__
builtins.zip # not a function at runtime
bz2.BZ2Decompressor.__init__
bz2.BZ2File.readinto
bz2.BZ2File.readlines
bz2.BZ2File.write
bz2.BZ2File.writelines
bz2.BZ2Decompressor.__init__ # function does not accept parameters but C signature is set
# The following methods were changed in point releases from Python 3.6 to 3.9
# as part of a security fix. These excludes can be removed when the GitHub
# action workflow uses Python versions that include the fix (adding a