Skip to content

Commit 1b4c083

Browse files
committed
Revert to some Python types to try to fix Windows tests
1 parent 86bbded commit 1b4c083

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

line_profiler/_line_profiler.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ cdef extern from "Python_wrapper.h":
114114
cdef void Py_XDECREF(PyObject *o)
115115

116116
# it's actually an unsigned long, but we want to avoid truncation on windows
117-
cdef unsigned long long PyThread_get_thread_ident()
117+
cdef uint64_t PyThread_get_thread_ident()
118118
cdef Py_hash_t hash_bytecode(PyObject *bytestring, const char* bytes,
119119
Py_ssize_t len)
120120

@@ -577,7 +577,7 @@ sys.monitoring.html#monitoring-event-RERAISE
577577
"""
578578
cdef TraceCallback *legacy_callback
579579
cdef _SysMonitoringState mon_state
580-
cdef public set active_instances # type: set[LineProfiler]
580+
cdef public object active_instances # type: set[LineProfiler]
581581
cdef int _wrap_trace
582582
cdef int _set_frame_local_trace
583583
cdef int recursion_guard
@@ -1415,11 +1415,11 @@ datamodel.html#user-defined-functions
14151415
@cython.boundscheck(False)
14161416
@cython.wraparound(False)
14171417
cdef inline inner_trace_callback(
1418-
int is_line_event, set instances, object code, int lineno):
1418+
int is_line_event, object instances, object code, int lineno):
14191419
"""
14201420
The basic building block for the trace callbacks.
14211421
"""
1422-
cdef LineProfiler prof_
1422+
cdef object prof_
14231423
cdef LineProfiler prof
14241424
cdef LastTime old
14251425
cdef int key

0 commit comments

Comments
 (0)