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 Nov 10, 2024
1 parent ee06dc2 commit f37d7de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/safeds_stubgen/api_analyzer/_ast_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,8 +775,7 @@ def _create_inferred_results(
if type__ not in result_array[i]:
result_array[i].append(type__)

if len(result_array[i]) > longest_inner_list:
longest_inner_list = len(result_array[i])
longest_inner_list = max(len(result_array[i]), longest_inner_list)
else:
result_array.append([type__])

Expand Down
1 change: 1 addition & 0 deletions tests/safeds_stubgen/api_analyzer/test__get_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import TYPE_CHECKING

import pytest

from safeds_stubgen.api_analyzer import get_api
from safeds_stubgen.docstring_parsing import DocstringStyle

Expand Down
1 change: 1 addition & 0 deletions tests/safeds_stubgen/api_analyzer/test_types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from copy import deepcopy

import pytest

from safeds_stubgen.api_analyzer import (
AbstractType,
Attribute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import TYPE_CHECKING

import pytest

from safeds_stubgen.api_analyzer import TypeSourcePreference, TypeSourceWarning, get_api
from safeds_stubgen.docstring_parsing import DocstringStyle
from safeds_stubgen.stubs_generator import NamingConvention, StubsStringGenerator, create_stub_files, generate_stub_data
Expand Down

0 comments on commit f37d7de

Please sign in to comment.