Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hints #866

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Type hints #866

merged 2 commits into from
Jan 27, 2025

Conversation

DiamondJoseph
Copy link
Contributor

@DiamondJoseph DiamondJoseph commented Jan 27, 2025

This change is currently based on top of #856, when that change has been merged the changes will be a little clearer.

Replaces the use of the Pydantic BaseSettings in type hints with the tiled Settings class- while it is an instance of BaseSettings, it's much clearer what we're expecting and passing.
Replaces lru_cache with cache- where it was being used all take 0 arguments, and so the hashing of arguments and evicting of old values makes lru_cache less efficient.

Checklist

  • Add a Changelog entry
  • Add the ticket number which this PR closes to the comment section

@danielballan danielballan merged commit 7e54cd5 into main Jan 27, 2025
9 checks passed
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.

2 participants