Skip to content

Commit

Permalink
🎨 Update type annotations in _compat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Feb 16, 2024
1 parent 2ca31c7 commit 6499268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlmodel/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_model_fields(model: InstanceOrType[BaseModel]) -> Dict[str, "FieldInfo"]

def get_fields_set(
object: InstanceOrType["SQLModel"]
) -> Union[Set[str], Callable[[BaseModel], set[str]]]:
) -> Union[Set[str], Callable[[BaseModel], Set[str]]]:
return object.model_fields_set

def set_fields_set(
Expand Down Expand Up @@ -398,7 +398,7 @@ def get_model_fields(model: InstanceOrType[BaseModel]) -> Dict[str, "FieldInfo"]

def get_fields_set(
object: InstanceOrType["SQLModel"]
) -> Union[Set[str], Callable[[BaseModel], set[str]]]:
) -> Union[Set[str], Callable[[BaseModel], Set[str]]]:
return object.__fields_set__

def set_fields_set(
Expand Down

0 comments on commit 6499268

Please sign in to comment.