Clean up imports and terminal newlines in files according to pylint

This commit is contained in:
Eryn Wells 2022-05-07 11:22:54 -07:00
parent 372cd5f295
commit d0a2e2c2ef
4 changed files with 15 additions and 9 deletions

View file

@ -1,10 +1,12 @@
#!/usr/bin/env python3
# Eryn Wells <eryn@erynwells.me>
from typing import Optional
import tcod
from .actions import Action, ExitAction, RegenerateRoomsAction, BumpAction
from .geometry import Direction
from typing import Optional
class EventHandler(tcod.event.EventDispatch[Action]):
def ev_quit(self, event: tcod.event.Quit) -> Optional[Action]:

View file

@ -2,14 +2,16 @@
# Eryn Wells <eryn@erynwells.me>
import logging
import numpy as np
import random
import tcod
from .geometry import Direction, Point, Rect, Size
from .tile import Empty, Floor, Shroud, Wall
from dataclasses import dataclass
from typing import Iterator, List, Optional
import numpy as np
import tcod
from .geometry import Direction, Point, Rect, Size
from .tile import Empty, Floor, Shroud, Wall
LOG = logging.getLogger('map')
class Map:

View file

@ -1,10 +1,12 @@
#!/usr/bin/env python3
# Eryn Wells <eryn@erynwells.me>
import tcod
from .geometry import Point
from typing import Optional, Tuple
import tcod
from .geometry import Point
class Entity:
'''A single-tile drawable entity with a symbol and position.'''