Skip to content

Conversation

corneliusroemer
Copy link

Pyright flags our orjsonl.append because PEP 484’s stub-file export rules (import-as-alias or all) are applied to all py.typed libraries (PEP 561).

We therefore need to re-export append explicitly, e.g. append as append or via all, so type checkers recognise it as part of the public API.

This is fixed by reexporting as done in this PR.

Pyright flags our `orjsonl.append` because PEP 484’s stub-file export rules (import-as-alias or __all__) are applied to all py.typed libraries (PEP 561). 

We therefore need to re-export append explicitly, e.g. append as append or via __all__, so type checkers recognise it as part of the public API.

This is fixed by reexporting as done in this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant