pytest-dev / py

Python development support library (note: maintenance only)
MIT License
67 stars 106 forks source link

PEP 561 uses "py" namespace #185

Closed The-Compiler closed 6 years ago

The-Compiler commented 6 years ago

So I just read PEP 561 and noticed it uses package data for the py.typed package (plus apparently such a file in the package?) for type stubs.

Is that going to be an issue? Would it make sense to try and convince the authors to not use py.typed as name for that marker?

RonnyPfannschmidt commented 6 years ago

based on a initial skim, this is a in package package data filename, so i don't see any issues

asottile commented 6 years ago

This is just a data file and not actually a namespace.

For example, if I wanted to indicate that mymod is typed I'd have a structure like:

mymod/
├── __init__.py
├── foo.py
└── py.typed

And then I'd include the py.typed file as part of the package_data in setup.py