mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Monkey patch "typing" only for Python 3.5.0, 3.5.1 and 3.5.2
This commit is contained in:
parent
a23ca95173
commit
c05e008656
1 changed files with 4 additions and 3 deletions
|
|
@ -18,10 +18,11 @@
|
|||
|
||||
import sys
|
||||
|
||||
from .vendor import typing
|
||||
if sys.version_info[:3] in [(3, 5, 0), (3, 5, 1), (3, 5, 2)]:
|
||||
from .vendor import typing
|
||||
|
||||
# Monkey patch the standard "typing" module because Python versions from 3.5.0 to 3.5.2 have a broken one.
|
||||
sys.modules["typing"] = typing
|
||||
# Monkey patch the standard "typing" module because Python versions from 3.5.0 to 3.5.2 have a broken one.
|
||||
sys.modules["typing"] = typing
|
||||
|
||||
__copyright__ = "Copyright (C) 2017-2019 Dan Tès <https://github.com/delivrance>".replace(
|
||||
"\xe8",
|
||||
|
|
|
|||
Loading…
Reference in a new issue