Skip to content

Commit bc4f1ea

Browse files
committed
Refactor: Remove unused weakref import and class_registry
1 parent 0646f8c commit bc4f1ea

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sqlmodel/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import types
77
import typing
88
import uuid
9-
import weakref
109
from collections.abc import Callable, Mapping, Sequence, Set
1110
from dataclasses import dataclass
1211
from datetime import date, datetime, time, timedelta
@@ -846,8 +845,6 @@ def resolve_type_alias(annotation: Any) -> Any:
846845
return resolution
847846

848847

849-
class_registry = weakref.WeakValueDictionary()
850-
851848
default_registry = registry()
852849

853850
_TSQLModel = TypeVar("_TSQLModel", bound="SQLModel")

0 commit comments

Comments
 (0)