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

"Decorated property not supported" #1608

Closed
gvanrossum opened this issue Jun 2, 2016 · 1 comment
Closed

"Decorated property not supported" #1608

gvanrossum opened this issue Jun 2, 2016 · 1 comment
Labels

Comments

@gvanrossum
Copy link
Member

gvanrossum commented Jun 2, 2016

This is kind of unfortunate. Repro:

def noop(arg):
    def outer(func):
        def inner(*args, **kwds): return func(*args, **kwds)
    return outer

class C:
    @property  # E: Decorated property not supported
    @noop('hello')
    def foo(self):
        pass

I would like to at least have a way to claim that noop() returns a decorator that doesn't change the type.

@gvanrossum
Copy link
Member Author

Duplicate of #1362.

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

No branches or pull requests

1 participant