You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah sorry I should've clarified my situation. I use pyright which complains if a library doesn't provide in-line type hints or type stubs. Pyright only considers a library to provide in-line type hints if it has a py.typed file in the root directory of the library because of PEP 561.
I also ran into some parts of the public API that didn't have type hints (like @task) which pyright also doesn't like because I'm using strict mode.
I fixed these errors by running pyright --createstub locust and then manually adding some missing type hints to the parts of the interface that I'm using.
I'll have a look through the code base and if I have time I'll create a PR to add some missing type hints and provide the py.typed file :)
Is your feature request related to a problem? Please describe.
Type hints are just a general improvement :)
Describe the solution you'd like
Provide in-line type hints and mark the package as providing types by including a
py.typed
file in the distribution.Additional context
You could also provide type stubs as pyright can automatically generate them for you, removing some of the work required for this:
The text was updated successfully, but these errors were encountered: