diff --git a/scripts/build_spec.py b/scripts/build_spec.py index 88c3d46fb..e6a95e028 100644 --- a/scripts/build_spec.py +++ b/scripts/build_spec.py @@ -210,7 +210,7 @@ ignored_dependencies = [ def dependency_order_ssz_objects(objects: Dict[str, str], custom_types: Dict[str, str]) -> None: """ - Determines which SSZ Object is depenedent on which other and orders them appropriately + Determines which SSZ Object is dependent on which other and orders them appropriately """ items = list(objects.items()) for key, value in items: diff --git a/test_libs/pyspec/eth2spec/test/context.py b/test_libs/pyspec/eth2spec/test/context.py index 5a0ddb59d..5cc42c510 100644 --- a/test_libs/pyspec/eth2spec/test/context.py +++ b/test_libs/pyspec/eth2spec/test/context.py @@ -101,7 +101,7 @@ all_phases = ['phase0', 'phase1'] def with_all_phases(fn): """ - A decorator for running a test wil every phase + A decorator for running a test with every phase """ return with_phases(all_phases)(fn) diff --git a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py index 1f199e6e1..891633afe 100644 --- a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py +++ b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py @@ -344,7 +344,7 @@ class BaseList(list, Elements): return super().__iter__() def last(self): - # be explict about getting the last item, for the non-python readers, and negative-index safety + # be explicit about getting the last item, for the non-python readers, and negative-index safety return self[len(self) - 1] diff --git a/test_libs/pyspec/eth2spec/utils/ssz/test_ssz_typing.py b/test_libs/pyspec/eth2spec/utils/ssz/test_ssz_typing.py index f746a29c9..d5a53c5fa 100644 --- a/test_libs/pyspec/eth2spec/utils/ssz/test_ssz_typing.py +++ b/test_libs/pyspec/eth2spec/utils/ssz/test_ssz_typing.py @@ -222,7 +222,7 @@ def test_bytesn_subclass(): def test_uint_math(): - assert uint8(0) + uint8(uint32(16)) == uint8(16) # allow explict casting to make invalid addition valid + assert uint8(0) + uint8(uint32(16)) == uint8(16) # allow explicit casting to make invalid addition valid expect_value_error(lambda: uint8(0) - uint8(1), "no underflows allowed") expect_value_error(lambda: uint8(1) + uint8(255), "no overflows allowed")