Skip to content

TOW-1131 - add py.typed to python sdk - #127

Merged
socksy merged 2 commits into
developfrom
feature/tow-1131-add-pytyped-to-python-sdk
Nov 5, 2025
Merged

TOW-1131 - add py.typed to python sdk#127
socksy merged 2 commits into
developfrom
feature/tow-1131-add-pytyped-to-python-sdk

Conversation

@socksy

Copy link
Copy Markdown
Contributor

Resolves TOW-1131

See title :) No more needed to be done since there's already types, this just lets tooling know that there are types defined in the library itself it can use. See PEP 561

@socksysocksy changed the title TOW-1131 - add pytyped to python sdkTOW-1131 - add py.typed to python sdkNov 3, 2025
Comment threadsrc/tower/__init__.py


def __getattr__(name: str) -> any:
def __getattr__(name: str):

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This should have been Any
  2. having it here meant that typechecking doesn't actually do anything meaningful, which defeats the whole point

@socksy

Copy link
Copy Markdown
ContributorAuthor

rerequesting a review @konstantinoscs because the change before was dramatically less than it is now

@bradhebradhe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@socksy
socksyforce-pushed the feature/tow-1131-add-pytyped-to-python-sdk branch from fd0800b to 1149f6bCompareNovember 4, 2025 20:39
@socksy
socksy merged commit 367c71a into developNov 5, 2025
18 checks passed
@socksy
socksy deleted the feature/tow-1131-add-pytyped-to-python-sdk branch November 5, 2025 16:57
Sign up for freeto 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.

3 participants

@socksy@bradhe@konstantinoscs