8000 stubgen: Use NamedTuple class syntax by srittau · Pull Request #10625 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

stubgen: Use NamedTuple class syntax #10625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary variable
  • Loading branch information
srittau committed Jun 10, 2021
commit 0bcddbdd3cde68c0d2cb696049ad3e4c6d441ed6
1 change: 0 additions & 1 deletion mypy/stubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,6 @@ def is_namedtuple(self, expr: Expression) -> bool:
def process_namedtuple(self, lvalue: NameExpr, rvalue: CallExpr) -> None:
if self._state != EMPTY:
self.add('\n')
name = repr(getattr(rvalue.args[0], 'value', ERROR_MARKER))
if isinstance(rvalue.args[1], StrExpr):
items = rvalue.args[1].value.split(" ")
elif isinstance(rvalue.args[1], (ListExpr, TupleExpr)):
Expand Down
0