mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-21 15:00:18 +00:00
style: pre-commit
This commit is contained in:
parent
33287b2e3a
commit
5e13685cf4
14
.pre-commit-config.yaml
Normal file
14
.pre-commit-config.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.12.0
|
||||
hooks:
|
||||
- id: isort
|
@ -1,4 +1,4 @@
|
||||
from dataclasses import dataclass, asdict
|
||||
from dataclasses import asdict, dataclass
|
||||
from typing import Optional
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
from typing import TypeVar, Generic
|
||||
from typing import Generic, TypeVar
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
from typing import Any, Protocol, ClassVar, Dict
|
||||
from typing import Any, ClassVar, Dict, Protocol
|
||||
|
||||
|
||||
class TDataclass(Protocol):
|
||||
__dataclass_fields__: ClassVar[Dict]
|
||||
|
||||
def __call__(self, *args: Any, **kwds: Any) -> Any:
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user