Skip to content

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

Merged
vbraun merged 9 commits intosagemath:developfrom
mkoeppe:is_Scheme_deprecation
May 25, 2024
Merged

sage.schemes: Deprecate is_... functions#38022
vbraun merged 9 commits intosagemath:developfrom
mkoeppe:is_Scheme_deprecation

Conversation

@mkoeppe
Copy link
Copy Markdown
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

@github-actions
Copy link
Copy Markdown

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
@kwankyu
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

mkoeppe commented May 23, 2024

Thanks!

@vbraun vbraun merged commit ccc8895 into sagemath:develop May 25, 2024
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 13, 2026
sagemathgh-41431: remove some deprecated stuff in schemes/
    
after sagemath#38022 and sagemath#38277

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
    
URL: sagemath#41431
Reported by: Frédéric Chapoton
Reviewer(s): Dima Pasechnik
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 14, 2026
sagemathgh-41431: remove some deprecated stuff in schemes/
    
after sagemath#38022 and sagemath#38277

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
    
URL: sagemath#41431
Reported by: Frédéric Chapoton
Reviewer(s): Dima Pasechnik
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