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

chore: series and expr namespaces typing with generics #1232

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

FBruzzesi
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below.

Diff is large but easier than what it could look like - idea is to let Namespace's accept generic, which will be Self of the class

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

really nice solution, thanks @FBruzzesi ! 😍

@MarcoGorelli MarcoGorelli merged commit 3224aeb into main Oct 20, 2024
28 checks passed
@FBruzzesi FBruzzesi deleted the chore/series-expr-namespace-typing branch October 20, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

typing: dt namespace doesn't preserve input subclass
2 participants