Skip to content

Commit fcdaf02

Browse files
authored
Mention that type stubs need to be contained in a package directory (#4715)
2 parents 3e3d16d + 8116f8e commit fcdaf02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/userguide/miscellaneous.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ of ``setuptools``. The behavior of older versions might differ.
3838
.. versionadded:: v69.0.0
3939
``setuptools`` will attempt to include type information files
4040
by default in the distribution
41-
(``.pyi`` and ``py.typed``, as specified in :pep:`561`).
41+
(``.pyi`` and ``py.typed``, as specified in :pep:`561`),
42+
as long as they are contained inside of a package directory
43+
(for the time being there is no automatic support for top-level ``.pyi`` files).
4244

4345
*Please note however that this feature is* **EXPERIMENTAL** *and may change in
4446
the future.*

0 commit comments

Comments
 (0)