Skip to content

Remove Python2 generator work around #7659

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

Closed
williambdean opened this issue Jan 25, 2025 · 3 comments · Fixed by #7664
Closed

Remove Python2 generator work around #7659

williambdean opened this issue Jan 25, 2025 · 3 comments · Fixed by #7664

Comments

@williambdean
Copy link
Contributor

Seems stale:

pymc/pymc/data.py

Lines 111 to 121 in b36e573

def __next__(self):
"""Next value in the generator."""
if not self._yielded_test_value:
self._yielded_test_value = True
return self.test_value
else:
return smarttypeX(copy(next(self.gen)))
# python2 generator
next = __next__

@ricardoV94
Copy link
Member

That whole thing is deprecated (if you trigger it via the user-facing API)

@williambdean
Copy link
Contributor Author

williambdean commented Jan 25, 2025

I see the deprecation warning dating to August. Can I do the honors of removing?

@ricardoV94
Copy link
Member

Sure

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 a pull request may close this issue.

2 participants