File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -755,7 +755,6 @@ def whitespace_around_named_parameter_equals(logical_line, tokens):
755
755
Okay: boolean(a <= b)
756
756
Okay: boolean(a >= b)
757
757
Okay: def foo(arg: int = 42):
758
- Okay: def f(x: int, y=15, z: float = 0.123) -> list:
759
758
760
759
E251: def complex(real, imag = 0.0):
761
760
E251: return magic(r = real, i = imag)
@@ -786,6 +785,9 @@ def whitespace_around_named_parameter_equals(logical_line, tokens):
786
785
no_space = True
787
786
if start != prev_end :
788
787
yield (prev_end , message )
788
+ if not parens :
789
+ annotated_func_arg = False
790
+
789
791
prev_end = end
790
792
791
793
Original file line number Diff line number Diff line change @@ -29,3 +29,8 @@ def foo(bar = False):
29
29
foo (bar = (1 <= 1 ))
30
30
(options , args ) = parser .parse_args ()
31
31
d [type (None )] = _deepcopy_atomic
32
+
33
+ # Annotated Function Definitions
34
+ #: Okay
35
+ def munge (input : AnyStr , sep : AnyStr = None , limit = 1000 ) -> AnyStr :
36
+ pass
You can’t perform that action at this time.
0 commit comments