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
class PartiallyAnnotated: # E: Function is missing a type annotation for one or more arguments
1430
+
class PartiallyAnnotated: # E: Function is missing a type annotation for one or more arguments: "baz"
1409
1431
bar: int = attrs.field()
1410
1432
baz = attrs.field()
1411
1433
@@ -2301,13 +2323,13 @@ ignore_errors = True
2301
2323
# flags: --config-file tmp/mypy.ini
2302
2324
import x, y, z
2303
2325
[file x.py]
2304
-
def f(a): ... # E: Function is missing a type annotation
2326
+
def f(a): ... # E: Function is missing a return type annotation # N: Use "-> None" if function does not return a value # E: Function is missing a type annotation
2305
2327
def g(a: int) -> int: return f(a)
2306
2328
[file y.py]
2307
2329
def f(a): pass
2308
2330
def g(a: int) -> int: return f(a)
2309
2331
[file z.py]
2310
-
def f(a): pass # E: Function is missing a type annotation
2332
+
def f(a): pass # E: Function is missing a return type annotation # N: Use "-> None" if function does not return a value # E: Function is missing a type annotation
2311
2333
def g(a: int) -> int: return f(a) # E: Call to untyped function "f" in typed context
0 commit comments