mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Modify typing.py slightly for RustPython
This commit is contained in:
1 file changed
+6
-4
Vendored
+6
-4
@@ -2390,8 +2390,9 @@ class io:
|
||||
BinaryIO = BinaryIO
|
||||
|
||||
|
||||
io.__name__ = __name__ + '.io'
|
||||
sys.modules[io.__name__] = io
|
||||
# XXX RustPython TODO: editable type.__name__
|
||||
# io.__name__ = __name__ + '.io'
|
||||
sys.modules[__name__ + '.io'] = io
|
||||
|
||||
|
||||
Pattern = _TypeAlias('Pattern', AnyStr, type(stdlib_re.compile('')),
|
||||
@@ -2408,5 +2409,6 @@ class re:
|
||||
Match = Match
|
||||
|
||||
|
||||
re.__name__ = __name__ + '.re'
|
||||
sys.modules[re.__name__] = re
|
||||
# XXX RustPython TODO: editable type.__name__
|
||||
# re.__name__ = __name__ + '.re'
|
||||
sys.modules[__name__ + '.re'] = re
|
||||
Reference in new issue
Block a user