Make MyPy happy
- Aug 17, 2024
-
-
Jakob Moser authored
-
Jakob Moser authored
-
Jakob Moser authored
-
Jakob Moser authored
-
Jakob Moser authored
db = SQLAlchemy() should be enough to already infer the type of the variable
-
Jakob Moser authored
-
Jakob Moser authored
-
Jakob Moser authored
-
karp authored
Update to solve the LSP errors via typing changes and not by code changes. This undos LSP-violation related code changes.
-
- Aug 07, 2024
-
-
karp authored
The argument can only be a string or None, because dateime.from_isoformat expects only a string.
-
karp authored
According to mypy the previous annotation violated the LSP. We now use the types of the supertype method and return a datetime object only if the argument was a datetime-object.
-
karp authored
According to mypy the previous annotation violated the LSP. Therefore, we use the types of the supertype method and check for correct types in the method.
-
karp authored
-