Skip to content

Type Hint from_django()#31

Open
colinrsmall wants to merge 1 commit intojonathan-s:mainfrom
colinrsmall:main
Open

Type Hint from_django()#31
colinrsmall wants to merge 1 commit intojonathan-s:mainfrom
colinrsmall:main

Conversation

@colinrsmall
Copy link

Added overloads to the from_django() signature to inform type checkers that the function returns a ModelSchema if many=False and a list[ModelSchema] otherwise.

Added overloads to the from_django() signature to inform type checkers that the function returns a ModelSchema if many=False and a list[ModelSchema] otherwise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant