Skip to content

Commit f5ee64c

Browse files
committed
add missing imports to pyx files
1 parent 6d7263b commit f5ee64c

File tree

9 files changed

+14
-0
lines changed

9 files changed

+14
-0
lines changed

pandas/_libs/interval.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import inspect
12
import numbers
23
from operator import (
34
le,

pandas/_libs/lib.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections import abc
22
from decimal import Decimal
33
from enum import Enum
4+
import inspect
45
from typing import Literal
56
import warnings
67

@@ -29,6 +30,7 @@ from cython cimport (
2930
Py_ssize_t,
3031
floating,
3132
)
33+
3234
from pandas.util._exceptions import find_stack_level
3335

3436
import_datetime()

pandas/_libs/tslib.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import inspect
12
import warnings
23

34
cimport cython
@@ -8,6 +9,7 @@ from cpython.datetime cimport (
89
import_datetime,
910
tzinfo,
1011
)
12+
1113
from pandas.util._exceptions import find_stack_level
1214

1315
# import datetime C API

pandas/_libs/tslibs/conversion.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cimport inspect
2+
13
cimport cython
24

35
import warnings

pandas/_libs/tslibs/nattype.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import inspect
12
import warnings
23

34
from pandas.util._exceptions import find_stack_level

pandas/_libs/tslibs/offsets.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import inspect
12
import operator
23
import re
34
import time

pandas/_libs/tslibs/period.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import inspect
12
import warnings
23

34
from pandas.util._exceptions import find_stack_level

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import collections
2+
import inspect
23
import warnings
34

45
from pandas.util._exceptions import find_stack_level

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ construction requirements, we need to do object instantiation in python
66
(see Timestamp class below). This will serve as a C extension type that
77
shadows the python class, where we do any heavy lifting.
88
"""
9+
import inspect
910
import warnings
1011

1112
cimport cython
@@ -47,7 +48,9 @@ import_datetime()
4748

4849
from pandas._libs.tslibs cimport ccalendar
4950
from pandas._libs.tslibs.base cimport ABCTimestamp
51+
5052
from pandas.util._exceptions import find_stack_level
53+
5154
from pandas._libs.tslibs.conversion cimport (
5255
_TSObject,
5356
convert_datetime_to_tsobject,

0 commit comments

Comments
 (0)