Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 081c8cb

Browse files
committed
Add extra test case
1 parent 37ee833 commit 081c8cb

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test-data/unit/check-columns.test

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,21 @@ main:13:5:13:40: error: Function is missing a type annotation
219219
main:16:5:16:24: error: Function is missing a type annotation
220220
main:19:5:19:36: error: Function is missing a type annotation
221221

222+
[case testColumnEndFunctionMissingTypeAnnotationWithReturnType]
223+
# flags: --disallow-untyped-defs --show-error-end
224+
def f() -> None:
225+
pass
226+
227+
def f_partially_typed(x: int, foo) -> None:
228+
pass
229+
230+
def f_untyped(x, foo, *args, **kwargs) -> None:
231+
pass
232+
[builtins fixtures/tuple.pyi]
233+
[out]
234+
main:5:1:5:43: error: Function is missing a type annotation for one or more arguments
235+
main:8:1:8:47: error: Function is missing a type annotation for one or more arguments
236+
222237
[case testColumnNameIsNotDefined]
223238
((x)) # E:3: Name "x" is not defined
224239

0 commit comments

Comments
 (0)