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
$ mypy --config-file pyproject.toml foo.py
foo.py: note: In function"foo":
foo.py:1:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
def foo(name):
^
foo.py:1:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-untyped-def for more info
foo.py:2:5: error: No return value expected [return-value]
return f"Hello, {name}!"
^~~~~~~~~~~~~~~~~~~~~~~~
foo.py:2:12: error: Expression has type"Untyped" [any]
return f"Hello, {name}!"
^~~~~~~~~~~~~~
foo.py:2:12: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-any for more info
Found 3 errors in 1 file (checked 1 source file)
meta:
mypy --version
basedmypy 2.10.0 (compiled: yes)
Based on mypy 1.15.0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As the title, how can I ignore the specific module or package? with below config it
exclude
is not working.file: foo.py
file: pyproject.toml
output:
meta:
Beta Was this translation helpful? Give feedback.
All reactions