mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 04:36:52 +00:00
add typing to src/flake8/__init__.py
This commit is contained in:
parent
002a99ec1b
commit
5bed787883
2 changed files with 8 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ This module
|
|||
"""
|
||||
import logging
|
||||
import sys
|
||||
from typing import Optional
|
||||
from typing import Type
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
|
@ -40,7 +41,11 @@ LOG_FORMAT = (
|
|||
)
|
||||
|
||||
|
||||
def configure_logging(verbosity, filename=None, logformat=LOG_FORMAT):
|
||||
def configure_logging(
|
||||
verbosity: int,
|
||||
filename: Optional[str] = None,
|
||||
logformat: str = LOG_FORMAT,
|
||||
) -> None:
|
||||
"""Configure logging for flake8.
|
||||
|
||||
:param int verbosity:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue