-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bbbbe7
commit 753c564
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include fnv1a/py.typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""__init__.pyi""" | ||
from __future__ import annotations | ||
from typing import TypeVar, Type | ||
|
||
T = TypeVar("T") | ||
|
||
|
||
class FNV1a: | ||
_seed: int | ||
_prime: int | ||
_mask: int | ||
|
||
def __init__(self) -> None: | ||
self.hash_list: list[int] | ||
self.hash_out: str | None | ||
self.text: str | None | ||
|
||
def __repr__(self) -> str: | ||
... | ||
|
||
def hash(self, text: str | None) -> str | None: | ||
... | ||
|
||
def _clear(self) -> None: | ||
... | ||
|
||
def _type_check(self, value: T, value_type: Type[T]) -> None: | ||
... | ||
|
||
def dehash(self, hash_list: list[int] | None = None) -> str | None: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Marker file for PEP 561. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters