Server IP : 213.176.29.180  /  Your IP : 18.224.55.136
Web Server : Apache
System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
User : webtaragh ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/../lib/python3.6/site-packages/josepy/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/../lib/python3.6/site-packages/josepy/magic_typing.py
"""Shim class to not have to depend on typing module in prod."""
# mypy: ignore-errors
import sys
import warnings


warnings.warn("josepy.magic_typing is deprecated and will be removed in a future release.",
              DeprecationWarning)


class TypingClass:
    """Ignore import errors by getting anything"""
    def __getattr__(self, name):
        return None


try:
    # mypy doesn't respect modifying sys.modules
    from typing import *  # noqa: F401,F403
except ImportError:
    sys.modules[__name__] = TypingClass()