[issue11339] annotation for class being defined

Andy Harrington report at bugs.python.org
Sat Feb 26 21:23:40 CET 2011


New submission from Andy Harrington <aharrin at luc.edu>:

You cannot make a self-referential annotation like

class Graph:
    def reverse(self) -> Graph:
       # ...

This corresponds to a common coding situation.

----------
components: Interpreter Core
messages: 129587
nosy: andyharrington
priority: normal
severity: normal
status: open
title: annotation for class being defined
type: feature request
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11339>
_______________________________________


More information about the Python-bugs-list mailing list