sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.32k stars 453 forks source link

sage.manifolds: Typing for _name, _latex_name #33609

Open mkoeppe opened 2 years ago

mkoeppe commented 2 years ago

This helps suppress warnings shown by pyright (#30411)

Depends on #29775

Component: manifolds

Author: Matthias Koeppe

Branch/Commit: u/mkoeppe/sage_manifoldstyping_for_namelatex_name @ e1ce0a1

Issue created by migration from https://trac.sagemath.org/ticket/33609

mkoeppe commented 2 years ago

Branch: u/mkoeppe/sage_manifoldstyping_for_namelatex_name

mkoeppe commented 2 years ago

Author: Matthias Koeppe

mkoeppe commented 2 years ago

Dependencies: #29775

mkoeppe commented 2 years ago

Commit: e1ce0a1

mkoeppe commented 2 years ago

New commits:

51ee92bAdd a bit of typing to manifold code
974ec0asrc/sage/tensor/modules/free_module_tensor.py: Conditionalize an import with 'if TYPE_CHECKING:', add 'from `__future__` import annotations'
9905adesrc/sage/manifolds/differentiable/manifold.py: Conditionalize imports with 'if TYPE_CHECKING:'
ba751f1src/sage/manifolds/differentiable/degenerate.py: Conditionalize an import with 'if TYPE_CHECKING:'
3beb020src/sage/manifolds/differentiable/degenerate_submanifold.py: Conditionalize an import with 'if TYPE_CHECKING:'
7c18c7fsrc/sage/manifolds/differentiable/tensorfield.py: Don't string-quote types
2672353Merge #29775
e1ce0a1src/sage/manifolds/differentiable/metric.py: Add types for _name, _latex_name
mkoeppe commented 2 years ago

Description changed:

--- 
+++ 
@@ -1 +1 @@
-
+This helps suppress warnings shown by `pyright` (#30411)