mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
style: Fix import order and add proper line spacing
This commit is contained in:
parent
642c1c50fb
commit
44ceb8f1a0
1 changed files with 4 additions and 1 deletions
5
tests/fixtures/languages/python/test.py
vendored
5
tests/fixtures/languages/python/test.py
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue