Clean up imports and terminal newlines in files according to pylint
This commit is contained in:
parent
372cd5f295
commit
d0a2e2c2ef
4 changed files with 15 additions and 9 deletions
|
@ -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]:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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.'''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue