Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Jan 1, 2024
1 parent 6db6fde commit 89b3a7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class ModuleDataBuilder:
value_nodes: dict[astroid.Name | MemberAccessValue, Scope | ClassScope | FunctionScope] = field(
default_factory=dict,
)
target_nodes: dict[astroid.AssignName | astroid.Name | MemberAccessTarget, Scope | ClassScope | FunctionScope] = field(default_factory=dict)
target_nodes: dict[astroid.AssignName | astroid.Name | MemberAccessTarget, Scope | ClassScope | FunctionScope] = (
field(default_factory=dict)
)
global_variables: dict[str, Scope | ClassScope | FunctionScope] = field(default_factory=dict)
parameters: dict[astroid.FunctionDef, tuple[Scope | ClassScope | FunctionScope, set[astroid.AssignName]]] = field(
default_factory=dict,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class ClassVariable(Symbol):
The class that defines the class variable.
"""

klass : astroid.ClassDef | None = field(default=None)
klass: astroid.ClassDef | None = field(default=None)

def __hash__(self) -> int:
return hash(str(self))
Expand Down Expand Up @@ -304,8 +304,8 @@ def symbol(self, new_symbol: Symbol) -> None:
def children(self) -> list[Scope | ClassScope]:
"""list[Scope | ClassScope] : Children of the scope.
The list of Scope or ClassScope instances that are defined in the scope of the Symbol node.
Is None if the node is a leaf node.
The list of Scope or ClassScope instances that are defined in the scope of the Symbol node.
Is None if the node is a leaf node.
"""
return self._children

Expand Down Expand Up @@ -381,8 +381,8 @@ class FunctionScope(Scope):
"""

# parameters: dict[str, list[Symbol]] = field(default_factory=dict)
values : list[Scope | ClassScope] = field(default_factory=list)
calls : list[Scope | ClassScope] = field(default_factory=list)
values: list[Scope | ClassScope] = field(default_factory=list)
calls: list[Scope | ClassScope] = field(default_factory=list)

def remove_call_node_by_name(self, name: str) -> None:
"""Remove a call node by name.
Expand Down

0 comments on commit 89b3a7a

Please sign in to comment.