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
Use mypy plugin to enable static checking of case classes (see pfun/case.py for a start).
pfun/case.py
Things that can be checked:
t
when
then
Other things that plugin must (should) do:
CaseClass
__init__
dataclass
The text was updated successfully, but these errors were encountered:
This is likely to be added to mypy at some point, especially given the structural pattern matching features in Python 3.1
Sorry, something went wrong.
No branches or pull requests
Use mypy plugin to enable static checking of case classes (see
pfun/case.py
for a start).Things that can be checked:
t
must correspond to match type, must be case subclasses, must all have the same base case)when
andthen
are of the correct typeOther things that plugin must (should) do:
CaseClass
calls to dataclass to enable__init__
generation (maybe possible to use mypydataclass
plugin)The text was updated successfully, but these errors were encountered: