Skip to content

did I GAT this right? #91

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

jessekrubin
Copy link
Contributor

@jessekrubin jessekrubin commented May 27, 2025

  • move to gats? I am not totally sure I if I GAT/got it right?
  • had to google aboot gats a bit more...

@davidhewitt is this what you intended to change based on the TODOs?

Copy link

codecov bot commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.16%. Comparing base (435870c) to head (77dddae).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
+ Coverage   84.10%   84.16%   +0.05%     
==========================================
  Files           3        3              
  Lines        1139     1143       +4     
  Branches     1139     1143       +4     
==========================================
+ Hits          958      962       +4     
  Misses        120      120              
  Partials       61       61              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Owner

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good to me!

I will probably wait to merge this until PyO3 upstream bumps MSRV to 1.65 or higher, after which point we'll be good to make use of this here.

@jessekrubin
Copy link
Contributor Author

@davidhewitt Thanks for taking a look.

Maybe a dumb question, but what is the advantage of gats over not gats?

@davidhewitt
Copy link
Owner

In some cases they enable patterns that aren't previously possible.

Here, they're just a nice simplification because it removes the lifetime from the trait ident and usage sites to be internal to the implementations.

@jessekrubin
Copy link
Contributor Author

@davidhewitt thanks so much!

rust is a wild language; I have this sense that rust is very mind-bending to people coming from cpp/java/python/.

@jessekrubin
Copy link
Contributor Author

jessekrubin commented Jun 6, 2025

@davidhewitt does this pr (PyO3/pyo3#5171) mean we are good to go here?

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