Skip to content

Commit 8f7b647

Browse files
committed
Fix static type checking
1 parent b01c254 commit 8f7b647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygmt/clib/session.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ def virtualfile_from_stringio(self, stringio: io.StringIO):
16651665
current_segment = {"header": "", "data": []}
16661666
current_segment["header"] = line.strip(">").lstrip()
16671667
else:
1668-
current_segment["data"].append(line)
1668+
current_segment["data"].append(line) # type: ignore[attr-defined]
16691669
if current_segment["data"]: # Add the last segment if it has data
16701670
segments.append(current_segment)
16711671

@@ -1690,7 +1690,7 @@ def virtualfile_from_stringio(self, stringio: io.StringIO):
16901690
for i, segment in enumerate(segments):
16911691
seg = table.segment[i].contents
16921692
if segment["header"] != "":
1693-
seg.header = segment["header"].encode()
1693+
seg.header = segment["header"].encode() # type: ignore[attr-defined]
16941694
seg.text = strings_to_ctypes_array(segment["data"])
16951695

16961696
with self.open_virtualfile(family, geometry, "GMT_IN", dataset) as vfile:

0 commit comments

Comments
 (0)