Update _erg_type.py

This commit is contained in:
Shunsuke Shibayama 2023-10-02 15:38:45 +09:00
parent cb66bcabaa
commit 828441f9f9

View file

@ -1,4 +1,10 @@
from typing import Union
try:
from typing import Union
except ImportError:
import warnings
warnings.warn("`typing.Union` is not available. Please use Python 3.8+.")
class Union:
pass
class UnionType:
__origin__ = Union