Skip to content

Commit

Permalink
fix typing for 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Jun 25, 2020
1 parent b2aa650 commit 3c38c9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pydantic/typing.py
Expand Up @@ -26,7 +26,12 @@


if sys.version_info < (3, 7):
from typing import _ForwardRef as ForwardRef # type: ignore
if TYPE_CHECKING:
class ForwardRef:
def _eval_type(self, globalns: Any, localns: Any) -> Any:
pass
else:
from typing import _ForwardRef as ForwardRef
else:
from typing import ForwardRef

Expand Down

0 comments on commit 3c38c9d

Please sign in to comment.