mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
e107531862
commit
2b031e61a2
@ -222,6 +222,7 @@ tuple.__ge__ = __f
|
|||||||
list.__ge__ = __f
|
list.__ge__ = __f
|
||||||
|
|
||||||
type.__repr__ = lambda self: "<class '" + self.__name__ + "'>"
|
type.__repr__ = lambda self: "<class '" + self.__name__ + "'>"
|
||||||
|
type.__getitem__ = lambda self, T: self # for generics
|
||||||
|
|
||||||
def help(obj):
|
def help(obj):
|
||||||
if hasattr(obj, '__func__'):
|
if hasattr(obj, '__func__'):
|
||||||
|
@ -21,3 +21,7 @@ Type = _PLACEHOLDER
|
|||||||
|
|
||||||
TypeVar = _PLACEHOLDER
|
TypeVar = _PLACEHOLDER
|
||||||
Self = _PLACEHOLDER
|
Self = _PLACEHOLDER
|
||||||
|
|
||||||
|
class Generic:
|
||||||
|
def __getitem__(self, T):
|
||||||
|
return object
|
Loading…
x
Reference in New Issue
Block a user