Skip to content

Commit b7fe783

Browse files
giogranobentsku
authored andcommitted
cleanup
1 parent 6101a7f commit b7fe783

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/py_avro_schema/_schemas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import re
2727
import sys
2828
import types
29-
import typing
3029
import uuid
3130
from enum import StrEnum
3231
from typing import (
@@ -1496,7 +1495,7 @@ def has_annotations(py_type: Type) -> bool:
14961495
"""Checks if a type has annotations"""
14971496
py_type = _type_from_annotated(py_type)
14981497
try:
1499-
return bool(typing.get_type_hints(py_type))
1498+
return bool(get_type_hints(py_type))
15001499
except Exception:
15011500
pass
15021501
return hasattr(py_type, "__annotations__")

0 commit comments

Comments
 (0)