Skip to content

Commit 1e0b16a

Browse files
committed
fix some lints
1 parent a6c07d5 commit 1e0b16a

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

hatch_multi/hooks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
from typing import Type
2-
31
from hatchling.plugin import hookimpl
42

53
from .plugin import HatchMultiMetadataHook
64

75

86
@hookimpl
9-
def hatch_register_metadata_hook() -> Type[HatchMultiMetadataHook]:
7+
def hatch_register_metadata_hook() -> type[HatchMultiMetadataHook]:
108
return HatchMultiMetadataHook

hatch_multi/structs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
from __future__ import annotations
22

3-
from typing import List, Optional, Union
4-
53
from pydantic import AliasChoices, BaseModel, Field
64

75
__all__ = ("HatchMultiConfig",)
86

97

108
class HatchMultiConfig(BaseModel, validate_assignment=True):
119
name: str = Field(description="Name of the package")
12-
primary: Optional[Union[str, List[str]]] = Field(
10+
primary: str | list[str] | None = Field(
1311
default=None,
1412
description="Optional dependency set/s to use as primary",
1513
alias=AliasChoices("primary", "default"),

0 commit comments

Comments
 (0)