-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
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
Initial mypy
support
#356
base: main
Are you sure you want to change the base?
Initial mypy
support
#356
Conversation
@@ -340,7 +340,7 @@ def reconstruct(self, **kwargs: typing.Any) -> Cell: | |||
return Cell(self._cellname) | |||
|
|||
|
|||
class TensorProductCell(AbstractCell): | |||
class TensorProductCell(Cell): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this change deliberate? I guess we should talk to our firedrake friends (@dham) if this is something they want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, fixes
ufl/cell.py:441: error: Incompatible return value type (got "TensorProductCell", expected "Cell") [return-value]
Not entirely sure if it is the right fix to it though.
Introduces a
mypy
linting check to the CI, and introduces fixes for somemypy
checks. The remaining, for now ignored checks require more extensive changes and are left out here.Work towards #211