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 conchylicultor
Recipients conchylicultor, eric.smith, larry
Date 2021-04-09.06:29:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617949783.6.0.830883612207.issue43746@roundup.psfhosted.org>
In-reply-to
Content
Sure, here is a minimal reproductible example demonstrating the issue:

```
import pathlib


class C:
    pathlib: pathlib.Path = None
```

Which raises:

```
  File "....py", line 5, in C
    pathlib: pathlib.Path = None
AttributeError: 'NoneType' object has no attribute 'Path'
```
History
Date User Action Args
2021-04-09 06:29:43conchylicultorsetrecipients: + conchylicultor, larry, eric.smith
2021-04-09 06:29:43conchylicultorsetmessageid: <1617949783.6.0.830883612207.issue43746@roundup.psfhosted.org>
2021-04-09 06:29:43conchylicultorlinkissue43746 messages
2021-04-09 06:29:43conchylicultorcreate