Skip to content

Commit 3cfa2c0

Browse files
committed
style: Format
1 parent 1094a9e commit 3cfa2c0

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/griffe/_internal/agents/inspector.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import ast
77
import functools
8-
import sys
98
import types
109
import typing
1110
from inspect import Parameter as SignatureParameter

src/griffe/_internal/expressions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from __future__ import annotations
88

99
import ast
10-
import sys
1110
from dataclasses import dataclass
1211
from dataclasses import fields as getfields
1312
from enum import IntEnum, auto
@@ -158,7 +157,6 @@ def _expr_as_dict(expression: Expr, **kwargs: Any) -> dict[str, Any]:
158157
}
159158

160159

161-
162160
@dataclass
163161
class Expr:
164162
"""Base class for expressions."""
@@ -579,7 +577,7 @@ def canonical_path(self) -> str:
579577
"""Path of the expressed keyword."""
580578
if self.function:
581579
return f"{self.function.canonical_path}({self.name})"
582-
return super(ExprKeyword, self).canonical_path # noqa: UP008
580+
return super(ExprKeyword, self).canonical_path
583581

584582
def iterate(self, *, flat: bool = True) -> Iterator[str | Expr]:
585583
yield self.name

0 commit comments

Comments
 (0)