logger: rewrite logger module
Make logging interface more pythonic
This commit is contained in:
parent
820fa1760d
commit
9258b98a9a
3 changed files with 76 additions and 22 deletions
|
|
@ -3,12 +3,12 @@ from dataclasses import dataclass, field
|
|||
from beartype import beartype
|
||||
from beartype.typing import Optional, List
|
||||
|
||||
import enum
|
||||
import re
|
||||
|
||||
from .logger import logger
|
||||
from .logger import Logger
|
||||
from .source import SourceLocation, Location
|
||||
|
||||
logger = Logger(__name__)
|
||||
|
||||
|
||||
@beartype
|
||||
@dataclass
|
||||
class Token:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue