Skip to content

Commit b5e7e97

Browse files
committed
Fixed typos
line_profiler/_line_profiler.pyx label(), _LineProfilerManager.__call__() Fixed typos in docstrings LineProfiler._managers Fixed type comment (doesn't matter anyway, autodoc can't catch type comments in Cython source files)
1 parent 743d19e commit b5e7e97

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

line_profiler/_line_profiler.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def label(code):
172172
module in Python 2.5.
173173
174174
Note:
175-
In Python >= 3.11 we use we return qualname for ``_name``.
175+
In Python >= 3.11 we return qualname for ``_name``.
176176
In older versions of Python we just return name.
177177
"""
178178
if isinstance(code, str):
@@ -275,7 +275,7 @@ cdef class _LineProfilerManager:
275275
Calls :c:func:`python_trace_callback()`. If
276276
:py:func:`sys.gettrace` returns this instance, replaces the
277277
default C-level trace function :c:func:`trace_trampoline` (see
278-
the C implementation of :py:mod:sys`) with
278+
the C implementation of :py:mod:`sys`) with
279279
:c:func:`python_trace_callback` to reduce overhead.
280280
281281
Returns;
@@ -496,7 +496,7 @@ cdef class LineProfiler:
496496
cdef public object threaddata
497497

498498
# This is shared between instances and threads
499-
_managers = {} # type: dict[int, _LineProfilerManager]
499+
_managers = {} # type: ClassVar[dict[int, _LineProfilerManager]]
500500

501501
def __init__(self, *functions,
502502
wrap_trace=None, set_frame_local_trace=None):

0 commit comments

Comments
 (0)