mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 22:34:17 +00:00
break type checking cycles
This commit is contained in:
parent
f6267dd4d7
commit
fa4c31fb97
10 changed files with 142 additions and 150 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import pytest
|
||||
|
||||
from flake8 import statistics as stats
|
||||
from flake8 import style_guide
|
||||
from flake8.violation import Violation
|
||||
|
||||
DEFAULT_ERROR_CODE = "E100"
|
||||
DEFAULT_FILENAME = "file.py"
|
||||
|
|
@ -16,7 +16,7 @@ def make_error(**kwargs):
|
|||
kwargs.setdefault("line_number", 1)
|
||||
kwargs.setdefault("column_number", 1)
|
||||
kwargs.setdefault("text", DEFAULT_TEXT)
|
||||
return style_guide.Violation(**kwargs, physical_line=None)
|
||||
return Violation(**kwargs, physical_line=None)
|
||||
|
||||
|
||||
def test_key_creation():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue