You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linting...
Function is missing a type annotation
>>> 78 class ApplicationDataBaseApplicationModel):
This doesn't make sense for two reasons:
mypy does not ever error on this line
There is no function on this line, let alone an unannotated one
The surrounding code looks like this:
class SomeReturnType:
...
def my_function(team_id: int, job_id: int) -> type[SomeReturnType]:
# do some initial work, set some variables etc
class ApplicationData(BaseApplicationModel):
# ... more class properties here
To Reproduce
Can't say exactly because dmypy doesn't always give an error.
Expected Behavior
No error.
Your Environment
Mypy version used: v1.15
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): see my previous issues
Python version used: 3.11
The text was updated successfully, but these errors were encountered:
Notably you're using the pydantic plugin, which I suspect is causing some issue. It's likely creating an __init__ or something marked as the same location as the class, which mypy then checks.
Bug Report
When running
dmypy
I get this error sometimes:This doesn't make sense for two reasons:
mypy
does not ever error on this lineThe surrounding code looks like this:
To Reproduce
Can't say exactly because
dmypy
doesn't always give an error.Expected Behavior
No error.
Your Environment
mypy.ini
(and other config files): see my previous issuesThe text was updated successfully, but these errors were encountered: