Skip to content

Commit

Permalink
Update slyp to 0.1.2 and fix what it finds
Browse files Browse the repository at this point in the history
slyp v0.1.2 adds W120 for multiline `|`-style unions in parameter
annotations without enclosing parentheses.
  • Loading branch information
sirosen committed Oct 26, 2023
1 parent c870827 commit 8d5f392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
- id: isort
name: "Sort python imports"
- repo: https://github.com/sirosen/slyp
rev: 0.1.1
rev: 0.1.2
hooks:
- id: slyp
- repo: https://github.com/codespell-project/codespell
Expand Down
5 changes: 3 additions & 2 deletions src/globus_sdk/services/transfer/data/transfer_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ def add_filter_rule(
name: str,
*,
method: Literal["include", "exclude"] = "exclude",
type: None # pylint: disable=redefined-builtin
| (Literal["file", "dir"]) = None,
type: ( # pylint: disable=redefined-builtin
None | Literal["file", "dir"]
) = None,
) -> None:
"""
Add a filter rule to the transfer document.
Expand Down

0 comments on commit 8d5f392

Please sign in to comment.