We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6101a7f commit b7fe783Copy full SHA for b7fe783
1 file changed
src/py_avro_schema/_schemas.py
@@ -26,7 +26,6 @@
26
import re
27
import sys
28
import types
29
-import typing
30
import uuid
31
from enum import StrEnum
32
from typing import (
@@ -1496,7 +1495,7 @@ def has_annotations(py_type: Type) -> bool:
1496
1495
"""Checks if a type has annotations"""
1497
py_type = _type_from_annotated(py_type)
1498
try:
1499
- return bool(typing.get_type_hints(py_type))
+ return bool(get_type_hints(py_type))
1500
except Exception:
1501
pass
1502
return hasattr(py_type, "__annotations__")
0 commit comments