From 98346bcf399c575c23185faec6598a5d86329c16 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 8 Aug 2023 11:25:54 -0300 Subject: [PATCH] Fixed use of Python 3.9 in populate.py --- kibot/PcbDraw/populate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kibot/PcbDraw/populate.py b/kibot/PcbDraw/populate.py index 2f21f326..a32d4cbe 100644 --- a/kibot/PcbDraw/populate.py +++ b/kibot/PcbDraw/populate.py @@ -28,7 +28,7 @@ from .plot import find_data_file, get_global_datapaths PKG_BASE = os.path.dirname(__file__) -def parse_pcbdraw(lexer: Any, m: re.Match[str], state: Any=None) -> Any: +def parse_pcbdraw(lexer: Any, m: re.Match, state: Any=None) -> Any: text = m.group(1) side, components = text.split("|") components = list(map(lambda x: x.strip(), components.split(","))) @@ -56,7 +56,7 @@ class PcbDrawInlineLexer(InlineParser): # type: ignore # This method is invoked by the old mistune API (i.e. v0.8.4) # For the new API we register `parse_pcbdraw` - def output_pcbdraw(self, m: re.Match[str]) -> Any: + def output_pcbdraw(self, m: re.Match) -> Any: _, side, components = parse_pcbdraw(self, m) return self.renderer.pcbdraw(side, components)