Skip to content

"Decorated property not supported" #1608

Closed

Description

@gvanrossum

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.

Activity

  1. gvanrossum commented on Sep 27, 2017

    @gvanrossum
    MemberAuthor

    Duplicate of #1362.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions