This repository was archived by the owner on Oct 1, 2019. It is now read-only.
This repository was archived by the owner on Oct 1, 2019. It is now read-only.
Multi-variable assignment is split over multiple lines #75
Open
Description
Found this issue in my codebase.
Input:
deck, created = Deck.objects.get_or_create_from_id_list(
decklist,
hero_id=player._hero.card_id,
game_type=game_type,
classify_archetype=True
)
Output:
(
deck,
created,
) = Deck.objects.get_or_create_from_id_list(decklist, hero_id=player._hero.card_id, game_type=game_type, classify_archetype=True)
This is wrong on two accounts: The multi-assignment should never be assigned to a tuple like that (even though it's syntactically correct, nobody does that). And the arguments to the method called on top of that shouldn't be rewrapped into a single line as that line ends up being too long. (Default params except tab, so 80 line length)
Metadata
Metadata
Assignees
Labels
No labels