[New-bugs-announce] [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>

More information about the New-bugs-announce mailing list