Skip to content
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

E225: missing whitespace around operator -- should not apply to type hints with default values (but does) #810

Open
AndydeCleyre opened this issue Apr 4, 2019 · 0 comments

Comments

@AndydeCleyre
Copy link

from dataclasses import dataclass


@dataclass
class CoolData:
    cool_float: float=12

That last line gets flagged with E225, while I would expect it not get flagged at all, since it is common practice to omit whitespace around the = operator when it indicates a default parameter value.

ST3 3200
Anaconda 2.1.29
Arch Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant