Skip to content

Commit 784e3fb

Browse files
committed
chore: add type hints for parameters
1 parent 2d72fb8 commit 784e3fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hatch_nodejs_version/metadata_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, *args, **kwargs):
3131
self.__fields = None
3232

3333
@property
34-
def path(self):
34+
def path(self) -> str:
3535
if self.__path is None:
3636
version_file = self.config.get("path", "package.json")
3737
if not isinstance(version_file, str):
@@ -46,7 +46,7 @@ def path(self):
4646
return self.__path
4747

4848
@property
49-
def fields(self):
49+
def fields(self) -> None | set[str]:
5050
if self.__fields is None:
5151
fields = self.config.get("fields", None)
5252
if fields is None:

0 commit comments

Comments
 (0)