File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919from __future__ import annotations
2020
2121import os
22- import sys
2322import time
2423from typing import Final , cast
2524
26- try :
27- import ast_serialize # type: ignore[import-not-found, unused-ignore]
28- except ImportError :
29- print ("error: ast-serialize package not installed" )
30- print ("note: to install run `pip install ast-serialize`" )
31- sys .exit (2 )
32-
25+ import ast_serialize
3326from librt .internal import (
3427 read_float as read_float_bare ,
3528 read_int as read_int_bare ,
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ requires = [
1414 # the following is from build-requirements.txt
1515 " types-psutil" ,
1616 " types-setuptools" ,
17+ # required to work around a mypyc import bug
18+ " ast-serialize>=0.3.0,<1.0.0" ,
1719]
1820build-backend = " setuptools.build_meta"
1921
You can’t perform that action at this time.
0 commit comments