Skip to content

Commit

Permalink
Fix pyright errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleragreen committed Dec 12, 2023
1 parent 05c1415 commit 792f265
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/test_inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ def do_loop(self):


class AbstractList:
def another_method(self):
def another_method(self) -> str:
return 'not much here'


class VehicleList(AbstractList):
def another_method(self):
def another_method(self) -> str:
return 'vehicles are cool'


Expand All @@ -21,7 +21,7 @@ class BusList(VehicleList):
def do_loop(self):
return 'looping bus'

def another_method(self):
def another_method(self) -> str:
return 'especially buses'


Expand Down
4 changes: 2 additions & 2 deletions tests/test_multiple_inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def do_loop(self):


class VehicleList:
def another_method(self):
def another_method(self) -> str:
return 'vehicles are cool'


Expand All @@ -21,7 +21,7 @@ class BusList(PublicTransportVehicle, VehicleList):
def do_loop(self):
return 'looping bus'

def another_method(self):
def another_method(self) -> str:
return 'especially buses'


Expand Down

0 comments on commit 792f265

Please sign in to comment.