This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aroberge
Recipients aroberge
Date 2020-08-05.14:25:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The following code is currently consistent with the type hint syntax but contains a line that is completely ignored.

   >>> d = {}
   >>> d['a']: int
   >>> d
   >>> __annotations__
    >>> '__annotations__' in dir(d)

I believe that type hints that cannot be either attached to an object nor added to any other __annotations__ dict should either generate a SyntaxError or, at the very least, result in a warning.
Date User Action Args
2020-08-05 14:25:11arobergesetrecipients: + aroberge
2020-08-05 14:25:10arobergesetmessageid: <>
2020-08-05 14:25:10arobergelinkissue41488 messages
2020-08-05 14:25:10arobergecreate