<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 13, 2017 at 3:50 PM, Sebastian Rittau <span dir="ltr"><<a href="mailto:srittau@rittau.biz" target="_blank">srittau@rittau.biz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello everyone,<span class="gmail-"><br>
<br>
<br>
Am 14.11.2017 um 00:29 schrieb Guido van Rossum:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
This is a nice piece of work. I expect to accept it pretty much verbatim (with some small edits, see <a href="https://github.com/python/peps/pull/467" rel="noreferrer" target="_blank">https://github.com/python/peps<wbr>/pull/467</a>). I agree with Nick that we don't have to do anything specifically about control of foo_stubs packages -- nor do I think we need to worry about foo_stubs vs. foo-stubs.<br>
<br>
Everyone else: if you think this should not go through, now's the time to reply-all here!<br>
</blockquote></span>
I am really looking forward to the implementation of this PEP and I am glad that it is close to acceptance. One thing that is not really clear to me is how module-only packages are handled. Say I have a package "foo" that installs the file "foo.py" to site-packages, where would I install "foo.pyi" and py.typed to? Or is this case not supported and I have to convert the foo module into a package containing just __init__.py?<br>
<br></blockquote><div>The PEP as of right now provides no support for module only distributions. I don't think it would be possible to support inline typing in module 
only distributions, as a random mymod.py in site/dist-packages is hard to
 trust. Refactoring into a package is probably the best option. Alternatively, I believe a mymod_stubs with just an __init__.pyi might work as a work around as well.</div><div><br></div><div>Ethan<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 - Sebastian<span class="gmail-"><br>
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-dev</a><br></span>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ethan%40ethanhs.me" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/options/python-dev/ethan%<wbr>40ethanhs.me</a><br>
</blockquote></div><br></div></div>