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

sage.schemes: Deprecate is_... functions #38022

Merged
merged 9 commits into from
May 25, 2024

Conversation

mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented May 18, 2024

Also a small improvement in the script src/bin/sage-fixdoctests that helped in preparing the PR.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@mkoeppe mkoeppe self-assigned this May 18, 2024
Copy link

github-actions bot commented May 18, 2024

Documentation preview for this PR (built with commit ceebb70; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Matthias Koeppe added 7 commits May 18, 2024 20:06
…Curve|DivisorGroup|SchemeHomset';SUFFIX='_generic'" "CLASS='Berkovich|Berkovich_Cp|AlgebraicScheme|AmbientSpace|Scheme|AffineScheme';SUFFIX=" "CLASS='ProjectiveSpace|ProductProjectiveSpaces';SUFFIX='_ring'" "CLASS='ToricVariety|CPRFanoToricVariety';SUFFIX='_field'" "CLASS='ChowGroup|KlyachkoBundle';SUFFIX='_class'" ; do eval "$a"; git --no-pager grep -l -E 'is_('$CLASS')' | xargs sed -E -i.bak 's/import is_('$CLASS')$/import \1'$SUFFIX'/;/^ +/s/is_('$CLASS')[(]([^()]*([(][^()]*[)])?[^()]*)[)]/isinstance(\2, \1'$SUFFIX')/g'; done
@mkoeppe mkoeppe marked this pull request as ready for review May 19, 2024 18:52
@mkoeppe mkoeppe changed the title src/sage/schemes: Deprecate is_... functions sage.schemes: Deprecate is_... functions May 19, 2024
@kwankyu
Copy link
Collaborator

kwankyu commented May 22, 2024

Otherwise lgtm.

…i.bak '/ is deprecated; use /s/the function /The function /;/ is deprecated; use /s/ instead/ instead./'
Copy link
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

LGTM.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 23, 2024

Thanks!

@vbraun vbraun merged commit ccc8895 into sagemath:develop May 25, 2024
18 checks passed
@mkoeppe mkoeppe added this to the sage-10.4 milestone May 25, 2024
@mkoeppe mkoeppe deleted the is_Scheme_deprecation branch May 25, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants