From 6dfe2f4a87362a27fe2e97a154daac2f11883284 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Jun 2024 18:25:40 +0800 Subject: style: ruff format code --- hrc/rule/BaseRule/CharacterCard.py | 13 ++++--------- hrc/rule/BaseRule/__init__.py | 6 +++--- 2 files changed, 7 insertions(+), 12 deletions(-) (limited to 'hrc/rule/BaseRule') diff --git a/hrc/rule/BaseRule/CharacterCard.py b/hrc/rule/BaseRule/CharacterCard.py index 6d09e5a..2baea48 100644 --- a/hrc/rule/BaseRule/CharacterCard.py +++ b/hrc/rule/BaseRule/CharacterCard.py @@ -1,22 +1,17 @@ -import dataclasses from dataclasses import dataclass -from typing import Literal, Optional, Union @dataclass class Custom(object): """Docstring for Custom.""" - property: type + property: type -class Attribute(Custom): - ... +class Attribute(Custom): ... -class Skill(Custom): - ... +class Skill(Custom): ... -class Information(Custom): - ... +class Information(Custom): ... diff --git a/hrc/rule/BaseRule/__init__.py b/hrc/rule/BaseRule/__init__.py index fbb8df2..fdde86c 100644 --- a/hrc/rule/BaseRule/__init__.py +++ b/hrc/rule/BaseRule/__init__.py @@ -1,3 +1,3 @@ -from . import CharacterCard -from . import CustomRule -from . import Wiki \ No newline at end of file +from . import CharacterCard # noqa: F401 +from . import CustomRule # noqa: F401 +from . import Wiki # noqa: F401 -- cgit v1.2.3-70-g09d2