mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 08:50:54 +00:00
typing things
This commit is contained in:
@@ -32,11 +32,11 @@ class EditList:
|
|||||||
(s for s in self.event_statements if type(s) is StmtEvent), None)
|
(s for s in self.event_statements if type(s) is StmtEvent), None)
|
||||||
|
|
||||||
if first_event:
|
if first_event:
|
||||||
if first_event.format == 8:
|
if first_event.source_field_size == 8:
|
||||||
return '3600'
|
return '3600'
|
||||||
elif first_event.format == 32:
|
elif first_event.source_field_size == 32:
|
||||||
return 'File32'
|
return 'File32'
|
||||||
elif first_event.format == 128:
|
elif first_event.source_field_size == 128:
|
||||||
return 'File128'
|
return 'File128'
|
||||||
else:
|
else:
|
||||||
return 'unknown'
|
return 'unknown'
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ def _parse_columns_for_standard_form(line: str, event_field_length: int,
|
|||||||
source_out=column_strings[12].strip(),
|
source_out=column_strings[12].strip(),
|
||||||
record_in=column_strings[14].strip(),
|
record_in=column_strings[14].strip(),
|
||||||
record_out=column_strings[16].strip(),
|
record_out=column_strings[16].strip(),
|
||||||
line_number=line_number, format=source_field_length)
|
line_number=line_number, source_field_size=source_field_length)
|
||||||
|
|
||||||
|
|
||||||
def _parse_source_umid_statement(line, line_number):
|
def _parse_source_umid_statement(line, line_number):
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class StmtEvent(NamedTuple):
|
|||||||
source_out: str
|
source_out: str
|
||||||
record_in: str
|
record_in: str
|
||||||
record_out: str
|
record_out: str
|
||||||
format: int
|
source_field_size: int
|
||||||
line_number: int
|
line_number: int
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user