Correct various typos

This commit is contained in:
Martin Lundfall 2019-08-19 13:05:44 +02:00
parent 35d89e2706
commit 62d37593fb
4 changed files with 4 additions and 4 deletions

View File

@ -210,7 +210,7 @@ ignored_dependencies = [
def dependency_order_ssz_objects(objects: Dict[str, str], custom_types: Dict[str, str]) -> None: 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()) items = list(objects.items())
for key, value in items: for key, value in items:

View File

@ -101,7 +101,7 @@ all_phases = ['phase0', 'phase1']
def with_all_phases(fn): 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) return with_phases(all_phases)(fn)

View File

@ -344,7 +344,7 @@ class BaseList(list, Elements):
return super().__iter__() return super().__iter__()
def last(self): 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] return self[len(self) - 1]

View File

@ -222,7 +222,7 @@ def test_bytesn_subclass():
def test_uint_math(): 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(0) - uint8(1), "no underflows allowed")
expect_value_error(lambda: uint8(1) + uint8(255), "no overflows allowed") expect_value_error(lambda: uint8(1) + uint8(255), "no overflows allowed")