We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e38a78e commit 344efedCopy full SHA for 344efed
1 file changed
mypy/fastparse.py
@@ -1957,7 +1957,7 @@ def visit_Call(self, e: Call) -> Type:
1957
1958
if not isinstance(self.parent(), ast3.List):
1959
note = None
1960
- if constructor and not e.keywords and len(e.args) == 1:
+ if constructor and not e.keywords:
1961
note = "Suggestion: use {0}[...] instead of {0}(...)".format(constructor)
1962
return self.invalid_type(e, note=note)
1963
if not constructor:
0 commit comments