style: Fix import order and add proper line spacing

This commit is contained in:
Paul Gauthier (aider) 2024-11-27 07:04:29 -08:00
parent 642c1c50fb
commit 44ceb8f1a0

View file

@ -1,4 +1,5 @@
from typing import Optional, List
from typing import List, Optional
class Person:
"""A class representing a person."""
@ -12,10 +13,12 @@ class Person:
prefix = "Good day" if formal else "Hello"
return f"{prefix}, {self.name}!"
def create_greeting_list(people: List[Person]) -> List[str]:
"""Create greetings for a list of people."""
return [person.greet() for person in people]
# Constants
DEFAULT_NAME = "World"
MAX_AGE = 150