Skip to content

Commit c336e7a

Browse files
committed
Bump librt version
1 parent 88ab4e6 commit c336e7a

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

mypy-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ typing_extensions>=4.6.0
44
mypy_extensions>=1.0.0
55
pathspec>=1.0.0
66
tomli>=1.1.0; python_version<'3.11'
7-
librt>=0.8.0; platform_python_implementation != 'PyPy'
7+
librt>=0.9.0; platform_python_implementation != 'PyPy'

mypy/nodes.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
)
2222

2323
from librt.internal import (
24+
extract_symbol,
2425
read_float as read_float_bare,
2526
read_int as read_int_bare,
2627
read_str as read_str_bare,
@@ -4937,13 +4938,8 @@ def read(cls, data: ReadBuffer) -> SymbolTableNode:
49374938
# This logic is temporary, to make sure we don't introduce
49384939
# regressions until we have proper lazy deserialization.
49394940
# It has negligible performance impact.
4940-
try:
4941-
from librt.internal import extract_symbol
4942-
except ImportError:
4943-
sym.node = read_symbol(data, tag)
4944-
else:
4945-
node_bytes = extract_symbol(data)
4946-
sym.node = read_symbol(ReadBuffer(node_bytes), tag)
4941+
node_bytes = extract_symbol(data)
4942+
sym.node = read_symbol(ReadBuffer(node_bytes), tag)
49474943
else:
49484944
sym.cross_ref = cross_ref
49494945
assert read_tag(data) == END_TAG

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requires = [
99
"mypy_extensions>=1.0.0",
1010
"pathspec>=1.0.0",
1111
"tomli>=1.1.0; python_version<'3.11'",
12-
"librt>=0.8.0; platform_python_implementation != 'PyPy'",
12+
"librt>=0.9.0; platform_python_implementation != 'PyPy'",
1313
# the following is from build-requirements.txt
1414
"types-psutil",
1515
"types-setuptools",
@@ -53,7 +53,7 @@ dependencies = [
5353
"mypy_extensions>=1.0.0",
5454
"pathspec>=1.0.0",
5555
"tomli>=1.1.0; python_version<'3.11'",
56-
"librt>=0.8.0; platform_python_implementation != 'PyPy'",
56+
"librt>=0.9.0; platform_python_implementation != 'PyPy'",
5757
]
5858
dynamic = ["version"]
5959

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ identify==2.6.15
2424
# via pre-commit
2525
iniconfig==2.1.0
2626
# via pytest
27-
librt==0.8.0 ; platform_python_implementation != "PyPy"
27+
librt==0.9.0 ; platform_python_implementation != "PyPy"
2828
# via -r mypy-requirements.txt
2929
lxml==6.0.2 ; python_version < "3.15"
3030
# via -r test-requirements.in

0 commit comments

Comments
 (0)