what file do I need to specify that my python library is type-hinted?
- User
what file do I need to specify that my python library is type-hinted?
- Assistant
To specify that your Python library is type-hinted and supports PEP 561, you need to include a file called:
py.typedHere's what to do:
-
Create a
py.typedfile
In your package directory (i.e., the directory that contains your actual Python code — the importable module), create an file named:
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.