Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikaeilorfanian/1adc93e3a879ecaf7fdfea928d816701 to your computer and use it in GitHub Desktop.
Save mikaeilorfanian/1adc93e3a879ecaf7fdfea928d816701 to your computer and use it in GitHub Desktop.
class Vehicle:
def drive(self, destination: str) -> None:
pass
def start(self) -> bool:
pass
class Car:
def drive(self, destination: str) -> None: # required for Vehicle type
pass
def start(self) -> bool: # required for vehicle type
pass
def __iter__(self): # required for Iterator type
pass
def __next__(self): # required for Iterator type
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment