Skip to content

Commit 6a0a96a

Browse files
committed
Fix codestyle warning
1 parent 523687c commit 6a0a96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/assets/mypy_plugin_test/exchange_typing_example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async def some_function() -> None:
2424
await exchange.field('a').read() # error expected (not a Readable object)
2525
exchange.field('a').subscribe(target, convert=convert_str) # type error expected
2626
exchange.field('a').subscribe(target, convert=convert_float) # ok
27-
exchange.field(SOME_A).subscribe(target, convert=convert_float) # cannot be detected, since field name is no str literal
27+
exchange.field(SOME_A).subscribe(target, convert=convert_float) # not checked, b/c arg is no str literal
2828
exchange.field('c').field('a').subscribe(target, convert=convert_str) # type error expected
2929
exchange.field('c').field('a').subscribe(target, convert=convert_float) # ok
3030
exchange.field('x').subscribe(target, convert=convert_float) # attr error expected

0 commit comments

Comments
 (0)