Skip to content

Commit f5b4fe4

Browse files
committed
chore: Fix redunant cast
src/vcspull/_internal/config_reader.py:175: error: Redundant cast to "str" [redundant-cast]
1 parent b8323ef commit f5b4fe4

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/vcspull/_internal/config_reader.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,11 @@ def _dump(
172172
'{\n "session_name": "my session"\n}'
173173
"""
174174
if format == "yaml":
175-
return t.cast(
176-
str,
177-
yaml.dump(
178-
content,
179-
indent=2,
180-
default_flow_style=False,
181-
Dumper=yaml.SafeDumper,
182-
),
175+
return yaml.dump(
176+
content,
177+
indent=2,
178+
default_flow_style=False,
179+
Dumper=yaml.SafeDumper,
183180
)
184181
elif format == "json":
185182
return json.dumps(

0 commit comments

Comments
 (0)