Skip to content

chore: add py.typed file#245

Merged
mxschmitt merged 1 commit intomainfrom
add-py.typed
Sep 6, 2024
Merged

chore: add py.typed file#245
mxschmitt merged 1 commit intomainfrom
add-py.typed

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

Added a py.typed file to tell mypy (a Python linter) that we are a typed package.

Before we didn't treat

class CreateContextCallback(Protocol):
as part of our public API - but turns our our customers wants to have a typed new_context function which is reasonable.

Is the name CreateContextCallback appropriate? We are still under 0.X releases - so we could rename in theory.

Fixes #244

@mxschmitt mxschmitt merged commit ea833ce into main Sep 6, 2024
@mxschmitt mxschmitt deleted the add-py.typed branch September 6, 2024 09:38
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.

Can't use CreateContextCallback in a type hint

2 participants