File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
@tests/stubtest_allowlists Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,7 @@ typing(_extensions)?\.TextIO\.newlines
494494typing(_extensions)?\.(Async)?ContextManager
495495
496496types.MethodType.__closure__ # read-only but not actually a property; stubtest thinks it doesn't exist.
497+ types.MethodType.__code__ # read-only but not actually a property; stubtest thinks it doesn't exist.
497498types.MethodType.__defaults__ # read-only but not actually a property; stubtest thinks it doesn't exist.
498499types.ModuleType.__dict__ # read-only but not actually a property; stubtest thinks it's a mutable attribute.
499500types.ModuleType.__getattr__ # this doesn't exist at runtime
Original file line number Diff line number Diff line change @@ -424,6 +424,8 @@ class MethodType:
424424 @property
425425 def __closure__ (self ) -> tuple [CellType , ...] | None : ... # inherited from the added function
426426 @property
427+ def __code__ (self ) -> CodeType : ... # inherited from the added function
428+ @property
427429 def __defaults__ (self ) -> tuple [Any , ...] | None : ... # inherited from the added function
428430 @property
429431 def __func__ (self ) -> Callable [..., Any ]: ...
You can’t perform that action at this time.
0 commit comments