mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Attempting solution to why pyrogram breaks
This commit is contained in:
parent
17d3a5b4cd
commit
8023aa5d28
@ -18,6 +18,13 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
__version__ = "0.12.0.develop"
|
__version__ = "0.12.0.develop"
|
||||||
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
|
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
|
||||||
__copyright__ = "Copyright (C) 2017-2019 Dan Tès <https://github.com/delivrance>".replace(
|
__copyright__ = "Copyright (C) 2017-2019 Dan Tès <https://github.com/delivrance>".replace(
|
||||||
@ -28,9 +35,3 @@ from .errors import RPCError
|
|||||||
from .client import *
|
from .client import *
|
||||||
from .client.handlers import *
|
from .client.handlers import *
|
||||||
from .client.types import *
|
from .client.types import *
|
||||||
|
|
||||||
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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user