Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Feb 20, 2024
1 parent 85046f2 commit 90c9efd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"prettier": "@lars-reimann/prettier-config",
"devDependencies": {
"@lars-reimann/prettier-config": "^5.0.0",
"@lars-reimann/prettier-config": "^5.2.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
Expand Down
6 changes: 3 additions & 3 deletions src/safeds_stubgen/api_analyzer/_ast_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def enter_classdef(self, node: mp_nodes.ClassDef) -> None:
variance_type = mypy_variance_parser(generic_type.variance)
variance_values: sds_types.AbstractType
if variance_type == VarianceKind.INVARIANT:
variance_values = sds_types.UnionType([
self.mypy_type_to_abstract_type(value) for value in generic_type.values
])
variance_values = sds_types.UnionType(
[self.mypy_type_to_abstract_type(value) for value in generic_type.values],
)
else:
variance_values = self.mypy_type_to_abstract_type(generic_type.upper_bound)

Expand Down

0 comments on commit 90c9efd

Please sign in to comment.