Skip to content

Deprecate is_Map, is_...Morphism#38103

Merged
vbraun merged 5 commits intosagemath:developfrom
mkoeppe:is_Map_deprecation
Jun 9, 2024
Merged

Deprecate is_Map, is_...Morphism#38103
vbraun merged 5 commits intosagemath:developfrom
mkoeppe:is_Map_deprecation

Conversation

@mkoeppe
Copy link
Copy Markdown
Contributor

@mkoeppe mkoeppe commented May 28, 2024

📝 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 28, 2024

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


def is_AbelianGroupMorphism(f):
from sage.misc.superseded import deprecation
deprecation(38103, "The function is_AbelianGroupMorphism is deprecated; use 'isinstance(..., AbelianGroupMorphism)' instead.")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't this line too long? Why are the linters not triggering 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've broken some of the long lines in 8619aff

Matthias Koeppe added 4 commits June 1, 2024 16:29
…ainComplexMorphism|SimplicialComplexMorphism';SUFFIX=" ; do eval "$a"; git --no-pager grep -l -E 'is_('$CLASS')' src/sage | xargs sed -E -i.bak 's/import is_('$CLASS')/import \1'$SUFFIX'/;/^ +/s/is_('$CLASS')[(]([^()]*([(][^()]*[)])?[^()]*)[)]/isinstance(\2, \1'$SUFFIX')/g'; done
…ep -l -E 'is_('$CLASS')' src/sage | xargs sed -E -i.bak 's/import is_('$CLASS')/import \1'$SUFFIX'/;/^ +/s/is_('$CLASS')[(]([^()]*([(][^()]*[)])?[^()]*)[)]/isinstance(\2, \1'$SUFFIX')/g'; done
@gmou3
Copy link
Copy Markdown
Contributor

gmou3 commented Jun 4, 2024

Looks good. I assume that similar changes need to be applied for is_Matrix, etc.

@mkoeppe
Copy link
Copy Markdown
Contributor Author

mkoeppe commented Jun 4, 2024

I assume that similar changes need to be applied for is_Matrix, etc.

That was done in #38077

@gmou3
Copy link
Copy Markdown
Contributor

gmou3 commented Jun 4, 2024

Oh, I see; and you did a better job than me on that. Just remove one stray import and good to go as far as I am concerned.

@mkoeppe
Copy link
Copy Markdown
Contributor Author

mkoeppe commented Jun 4, 2024

Done

Copy link
Copy Markdown
Contributor

@gmou3 gmou3 left a comment

Choose a reason for hiding this comment

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

Thanks.

@mkoeppe
Copy link
Copy Markdown
Contributor Author

mkoeppe commented Jun 4, 2024

Thanks for the review!

vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 5, 2024
sagemathgh-38103: Deprecate `is_Map`, `is_...Morphism`
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] 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

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#38103
Reported by: Matthias Köppe
Reviewer(s): gmou3, grhkm21, Matthias Köppe
@vbraun vbraun merged commit d1036f5 into sagemath:develop Jun 9, 2024
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 4, 2026
sagemathgh-41384: remove deprecated stuff in homology
    
after

sagemath#38103 and  sagemath#38184

both closed in 2024

### 📝 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#41384
Reported by: Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 6, 2026
sagemathgh-41384: remove deprecated stuff in homology
    
after

sagemath#38103 and  sagemath#38184

both closed in 2024

### 📝 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#41384
Reported by: Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 13, 2026
sagemathgh-41406: remove some deprecated stuff in topology/
    
after
sagemath#37922 ; Closed Date: 2024-05-25
sagemath#38103 ; Closed Date: 2024-06-09

### 📝 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#41406
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 14, 2026
sagemathgh-41406: remove some deprecated stuff in topology/
    
after
sagemath#37922 ; Closed Date: 2024-05-25
sagemath#38103 ; Closed Date: 2024-06-09

### 📝 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#41406
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 14, 2026
sagemathgh-41437: remove some deprecated stuff in groups/
    
after

sagemath#38184 ; Closed Date: 2024-06-22
sagemath#38103 ; Closed Date: 2024-06-09
sagemath#37449 ; Closed Date: 2024-03-31

### 📝 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#41437
Reported by: Frédéric Chapoton
Reviewer(s):
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.

4 participants