Skip to content

Commit

Permalink
stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Dec 11, 2024
1 parent e87e041 commit e014743
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/ethereum_test_fixtures/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .eof import Fixture as EOFFixture
from .state import Fixture as StateFixture
from .transaction import Fixture as TransactionFixture
from .verify_format import VerifyFixtureJson

FixtureModel = (
BlockchainFixture | BlockchainEngineFixture | StateFixture | EOFFixture | TransactionFixture
Expand Down
5 changes: 1 addition & 4 deletions src/ethereum_test_fixtures/schemas/common/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
"""

import re
from typing import Generic, TypeVar

from pydantic import RootModel, model_validator

T = TypeVar("T", bound="FixedHash")


class FixedHash(RootModel[str], Generic[T]):
class FixedHash(RootModel[str]):
"""Base class for fixed-length hashes."""

_length_in_bytes: int
Expand Down
3 changes: 3 additions & 0 deletions stubs/rlp/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .codec import decode as decode

__all__ = ("decode",)
2 changes: 2 additions & 0 deletions stubs/rlp/codec.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

def decode(rlp, sedes=None, strict=True, recursive_cache=False, **kwargs): ...
2 changes: 2 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e014743

Please sign in to comment.