Skip to content

Commit 0092c5b

Browse files
committed
future annotations and TYPE_CHECKING
1 parent 0ef3249 commit 0092c5b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

optics_functions/rdt.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
55
Functions for the calculations of Resonance Driving Terms, as well as
66
getting lists of valid driving term indices for certain orders.
7-
87
"""
98

9+
from __future__ import annotations
10+
1011
import itertools
1112
import logging
12-
from collections.abc import Sequence
1313
from math import factorial
14+
from typing import TYPE_CHECKING
1415

1516
import numpy as np
1617
import pandas as pd
@@ -27,6 +28,9 @@
2728
timeit,
2829
)
2930

31+
if TYPE_CHECKING:
32+
from collections.abc import Sequence
33+
3034
LOG = logging.getLogger(__name__)
3135

3236

0 commit comments

Comments
 (0)