Skip to content

Commit 124cfb1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 42df097 commit 124cfb1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/asphalt/core/_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def run(configfile: Sequence[str], service: str | None, set_: list[str]) -> None
6565
config: dict[str, Any] = {}
6666
for path in configfile:
6767
config_data = yaml.load(path, AsphaltLoader)
68-
assert isinstance(
69-
config_data, dict
70-
), "the document root element must be a dictionary"
68+
assert isinstance(config_data, dict), (
69+
"the document root element must be a dictionary"
70+
)
7171
config = merge_config(config, config_data)
7272

7373
# Override config options

src/asphalt/core/_event.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def utc_timestamp(self) -> datetime:
6565

6666
def __repr__(self) -> str:
6767
return (
68-
f"{self.__class__.__name__}(source={self.source!r}, "
69-
f"topic={self.topic!r})"
68+
f"{self.__class__.__name__}(source={self.source!r}, topic={self.topic!r})"
7069
)
7170

7271

tests/test_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def factory() -> int | float:
369369
assert context.get_resource_nowait(float) == 5
370370

371371
async def test_add_resource_return_type_optional(self, context: Context) -> None:
372-
def factory() -> Optional[str]: # noqa: UP007
372+
def factory() -> Optional[str]:
373373
return "foo"
374374

375375
context.add_resource_factory(factory)

0 commit comments

Comments
 (0)