Skip to content

Commit

Permalink
Merge pull request #163 from dandi/fix-typing
Browse files Browse the repository at this point in the history
Fix type annotation of `unvalidated()`
  • Loading branch information
yarikoptic authored Mar 6, 2023
2 parents 4e35300 + 1fe8d91 commit 9888bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandischema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def ensure_schemakey(cls, val: str) -> str:
return val

@classmethod
def unvalidated(__pydantic_cls__: Type[BaseModel], **data: Any) -> BaseModel:
def unvalidated(__pydantic_cls__: Type[M], **data: Any) -> M:
"""Allow model to be returned without validation"""
for name, field in __pydantic_cls__.__fields__.items():
try:
Expand Down

0 comments on commit 9888bd4

Please sign in to comment.