-
Notifications
You must be signed in to change notification settings - Fork 750
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
E301 regression vs 2.5.0 #908
Comments
this is a simpler case that also demonstrates this: def f(): pass
# c
@h
def g(): pass |
I'm confused; why would you want these to be allowable? |
(my motivation here is mostly for |
I would argue they are not oneliners anymore (literally they are not...), so at least personally I think the 2.4.0 behavior is fine. |
I'm not worried about
|
(I'm not dead set against changing the behavior, I just think the current one is correct. I'll thus unsubscribe from the issue, but feel free to ping me again if needed.) |
Here's a few examples where I'm utilizing a protocols:
|
sounds good -- I'll try and work on something that makes this work better (and shore up the tests around here as well, since I think there's a lot of "undefined space" around |
here's another typing-related case I'd like to try and fix as well: @overload
def environment_dir(d: None, language_version: str) -> None: ...
@overload
def environment_dir(d: str, language_version: str) -> str: ... |
I've added a patch for this in #927 |
sample
before
after
bisect
claims 7493e0a (CC @anntzer) is the regressing commit
The text was updated successfully, but these errors were encountered: