Skip to content

Commit c3da2c5

Browse files
committed
Fixed typos
line_profiler/_line_profiler.pyx label(), _LineProfilerManager.__call__() Fixed typos in docstrings LineProfiler._managers, ._all_paddings, ._all_instances_by_funcs Fixed type comments (doesn't matter anyway, autodoc can't catch type comments in Cython source files)
1 parent 703f415 commit c3da2c5

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

line_profiler/_line_profiler.pyx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def label(code):
202202
module in Python 2.5.
203203
204204
Note:
205-
In Python >= 3.11 we use we return qualname for ``_name``.
205+
In Python >= 3.11 we return qualname for ``_name``.
206206
In older versions of Python we just return name.
207207
"""
208208
if isinstance(code, str):
@@ -411,7 +411,7 @@ cdef class _LineProfilerManager:
411411
Calls :c:func:`legacy_trace_callback()`. If
412412
:py:func:`sys.gettrace` returns this instance, replaces the
413413
default C-level trace function :c:func:`trace_trampoline` (see
414-
the C implementation of :py:mod:sys`) with
414+
the C implementation of :py:mod:`sys`) with
415415
:c:func:`legacy_trace_callback` to reduce overhead.
416416
417417
Returns;
@@ -734,11 +734,12 @@ cdef class LineProfiler:
734734
cdef public object threaddata
735735

736736
# These are shared between instances and threads
737-
# type: dict[int, _LineProfilerManager], int = thread id
737+
# type: ClassVar[dict[int, _LineProfilerManager]], int = thread id
738738
_managers = {}
739-
# type: dict[bytes, int], bytes = bytecode
739+
# type: ClassVar[dict[bytes, int]], bytes = bytecode
740740
_all_paddings = {}
741-
# type: dict[int, weakref.WeakSet[LineProfiler]], int = func id
741+
# type: ClassVar[dict[int, weakref.WeakSet[LineProfiler]]],
742+
# int = func id
742743
_all_instances_by_funcs = {}
743744

744745
def __init__(self, *functions,

0 commit comments

Comments
 (0)