Make several fields read-only for type, staticmethod and classmethod (#7423)

This commit is contained in:
Alex Waygood
2022-03-06 23:50:26 +00:00
committed by GitHub
parent ea6e06a60d
commit 1a2f718ceb
2 changed files with 27 additions and 13 deletions

View File

@@ -54,6 +54,7 @@ sqlite3.Binary.__contains__ # C type that implements __getitem__
builtins.object.__init__ # default C signature is incorrect
builtins.property.__get__ # this function can accept no value for the type parameter.
builtins.staticmethod.__get__ # this function can accept no value for the type parameter.
builtins.type.__dict__ # read-only but not actually a property; stubtest thinks it's a mutable attribute.
bz2.BZ2Decompressor.__init__ # function does not accept parameters but C signature is set
# The following CodecInfo properties are added in __new__
codecs.CodecInfo.decode