mirror of
https://github.com/iluvcapra/pycmx.git
synced 2026-01-01 17:30:55 +00:00
flake8
This commit is contained in:
@@ -110,9 +110,9 @@ class Event:
|
|||||||
yield (s1, None)
|
yield (s1, None)
|
||||||
|
|
||||||
def _asc_sop_statement(self) -> Optional[StmtCdlSop]:
|
def _asc_sop_statement(self) -> Optional[StmtCdlSop]:
|
||||||
return next((s for s in self.statements if type(s) == StmtCdlSop),
|
return next((s for s in self.statements if type(s) is StmtCdlSop),
|
||||||
None)
|
None)
|
||||||
|
|
||||||
def _asc_sat_statement(self) -> Optional[StmtCdlSat]:
|
def _asc_sat_statement(self) -> Optional[StmtCdlSat]:
|
||||||
return next((s for s in self.statements if type(s) == StmtCdlSat),
|
return next((s for s in self.statements if type(s) is StmtCdlSat),
|
||||||
None)
|
None)
|
||||||
|
|||||||
@@ -109,8 +109,8 @@ def _parse_remark(line, line_number) -> object:
|
|||||||
elif line.startswith("ASC_SOP"):
|
elif line.startswith("ASC_SOP"):
|
||||||
group_patterns: list[str] = re.findall(r'\((.*?)\)', line)
|
group_patterns: list[str] = re.findall(r'\((.*?)\)', line)
|
||||||
|
|
||||||
v1: list[list[tuple[str, str]]] = [re.findall(r'(-?\d+(\.\d+)?)', a) for
|
v1: list[list[tuple[str, str]]] = \
|
||||||
a in group_patterns]
|
[re.findall(r'(-?\d+(\.\d+)?)', a) for a in group_patterns]
|
||||||
|
|
||||||
v: list[list[str]] = [[a[0] for a in b] for b in v1]
|
v: list[list[str]] = [[a[0] for a in b] for b in v1]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user