Skip to content

Commit

Permalink
sagemathgh-36639: fix broken pyright in CI
Browse files Browse the repository at this point in the history
    
This is trying to fix our broken CI, where pyright complains about the
type of `PariError`.

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36639
Reported by: Frédéric Chapoton
Reviewer(s): Tobias Diez
  • Loading branch information
Release Manager committed Nov 5, 2023
2 parents 636c96c + 76196ad commit 4533ffb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sage/dynamics/arithmetic_dynamics/projective_ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ class initialization directly.
lazy_import('sage.rings.padics.factory', 'Qp')
lazy_import('sage.rings.qqbar', 'number_field_elements_from_algebraics')

try:
from sage.libs.pari.all import PariError
except ImportError:
PariError = ()
from sage.libs.pari.all import PariError


class DynamicalSystem_projective(SchemeMorphism_polynomial_projective_space,
Expand Down

0 comments on commit 4533ffb

Please sign in to comment.