Skip to content

Commit c76581b

Browse files
committed
Add future annotations import
1 parent 62b5191 commit c76581b

File tree

12 files changed

+24
-0
lines changed

12 files changed

+24
-0
lines changed

src/sage/geometry/cone.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@
201201
# (at your option) any later version.
202202
# https://www.gnu.org/licenses/
203203
# ****************************************************************************
204+
from __future__ import annotations
205+
204206
from collections.abc import Hashable, Iterable, Container
205207
from copy import copy
206208
from typing import TYPE_CHECKING, Literal

src/sage/geometry/fan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@
233233
# (at your option) any later version.
234234
# https://www.gnu.org/licenses/
235235
# ****************************************************************************
236+
from __future__ import annotations
237+
236238
from collections.abc import Callable, Container
237239
from copy import copy
238240
from typing import TYPE_CHECKING, Literal

src/sage/geometry/lattice_polytope.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@
120120
# (at your option) any later version.
121121
# https://www.gnu.org/licenses/
122122
# ****************************************************************************
123+
from __future__ import annotations
124+
123125
import os
124126
import shlex
125127
from collections.abc import Hashable

src/sage/geometry/polyhedron/base0.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
# (at your option) any later version.
3030
# https://www.gnu.org/licenses/
3131
# ****************************************************************************
32+
from __future__ import annotations
33+
3234
from typing import TYPE_CHECKING, Literal
3335
from sage.misc.cachefunc import cached_method
3436
from sage.misc.abstract_method import abstract_method

src/sage/geometry/toric_lattice.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@
144144
#
145145
# https://www.gnu.org/licenses/
146146
# ****************************************************************************
147+
from __future__ import annotations
148+
147149
from typing import TYPE_CHECKING, Literal
148150
from sage.geometry.toric_lattice_element import ToricLatticeElement
149151
from sage.misc.lazy_import import lazy_import

src/sage/misc/explain_pickle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@
152152
# (at your option) any later version.
153153
# http://www.gnu.org/licenses/
154154
# *****************************************************************************
155+
from __future__ import annotations
156+
155157
import bz2 as comp_other
156158
import pickletools
157159
import re

src/sage/misc/sage_input.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@
172172
# (at your option) any later version.
173173
# https://www.gnu.org/licenses/
174174
# ****************************************************************************
175+
from __future__ import annotations
176+
175177
from typing import Literal
176178

177179
from sage.misc.lazy_import import lazy_import

src/sage/rings/complex_interval_field.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
# (at your option) any later version.
3535
# https://www.gnu.org/licenses/
3636
# ****************************************************************************
37+
from __future__ import annotations
38+
3739
from typing import TYPE_CHECKING, Literal
3840
import weakref
3941

src/sage/rings/polynomial/polynomial_ring.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@
137137
# (at your option) any later version.
138138
# https://www.gnu.org/licenses/
139139
# ****************************************************************************
140+
from __future__ import annotations
141+
140142
import sys
141143
from typing import TYPE_CHECKING, Literal
142144

src/sage/rings/qqbar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@
579579
- Carl Witty (2007-01-27): initial version
580580
- Carl Witty (2007-10-29): massive rewrite to support complex as well as real numbers
581581
"""
582+
from __future__ import annotations
583+
582584
import itertools
583585
import operator
584586
from typing import TYPE_CHECKING, Literal

0 commit comments

Comments
 (0)