File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
interactions/models/internal Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.4 .0
3
+ rev : v4.5 .0
4
4
hooks :
5
5
- id : requirements-txt-fixer
6
6
name : Requirements
@@ -30,12 +30,12 @@ repos:
30
30
- id : check-merge-conflict
31
31
name : Merge Conflicts
32
32
- repo : https://github.com/astral-sh/ruff-pre-commit
33
- rev : ' v0.0.282 '
33
+ rev : ' v0.0.292 '
34
34
hooks :
35
35
- id : ruff
36
36
args : [--fix, --exit-non-zero-on-fix]
37
37
- repo : https://github.com/psf/black
38
- rev : 23.7.0
38
+ rev : 23.9.1
39
39
hooks :
40
40
- id : black
41
41
name : Black Formatting
Original file line number Diff line number Diff line change @@ -535,7 +535,7 @@ def _is_optional(anno: typing.Any) -> bool:
535
535
536
536
537
537
def _remove_optional (t : OptionType | type ) -> Any :
538
- non_optional_args : tuple [type ] = tuple (a for a in typing .get_args (t ) if a is not types .NoneType ) # noqa
538
+ non_optional_args : tuple [type ] = tuple (a for a in typing .get_args (t ) if a is not types .NoneType )
539
539
if len (non_optional_args ) == 1 :
540
540
return non_optional_args [0 ]
541
541
return typing .Union [non_optional_args ] # type: ignore
You can’t perform that action at this time.
0 commit comments