make __class__ refer to the current object's class (#2480)

This is just a direct rehash of #1549.
This commit is contained in:
Michael J. Sullivan
2018-09-25 18:04:37 -07:00
committed by GitHub
parent 2e0af18dda
commit 65863bebf4
4 changed files with 14 additions and 6 deletions

View File

@@ -90,7 +90,6 @@ class UnboundMethodType:
class InstanceType:
__doc__ = ... # type: Optional[str]
__class__ = ... # type: type
__module__ = ... # type: Any
MethodType = UnboundMethodType