We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As per: Equivalence of two Literals
Two types Literal[v1] and Literal[v2] are equivalent when both of the following conditions are true: type(v1) == type(v2) v1 == v2
type(v1) == type(v2)
v1 == v2
I would like to update deserialization for typing.Literal in v1 opt-in to account for this.
typing.Literal
v1
Perhaps a Meta setting strict_mode_for_literals: bool, or else more simply a strict: bool, can be added to support this feature / enhancement.
Meta
strict_mode_for_literals: bool
strict: bool
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As per: Equivalence of two Literals
I would like to update deserialization for
typing.Literal
inv1
opt-in to account for this.Perhaps a
Meta
settingstrict_mode_for_literals: bool
, or else more simply astrict: bool
, can be added to support this feature / enhancement.The text was updated successfully, but these errors were encountered: