Skip to content

Commit b3fe526

Browse files
committed
chore(mypy): Fix before automated tweaks
src/tmuxp/workspace/finders.py:22: error: Incompatible default for argument "extensions" (default has type "None", argument has type "Literal[".yml", ".yaml", ".json"] | list[Literal[".yml", ".yaml", ".json"]]") [assignment] src/tmuxp/workspace/finders.py:22: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True src/tmuxp/workspace/finders.py:22: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
1 parent 8ff85c2 commit b3fe526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tmuxp/workspace/finders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
def is_workspace_file(
2121
filename: str,
22-
extensions: t.Union["ValidExtensions", t.List["ValidExtensions"]] = None,
22+
extensions: t.Union["ValidExtensions", t.List["ValidExtensions"], None] = None,
2323
) -> bool:
2424
"""
2525
Return True if file has a valid workspace file type.

0 commit comments

Comments
 (0)