Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Mar 21, 2022
1 parent 950d29d commit 87e0530
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deal/_runtime/_inherit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from types import FunctionType, MethodType
from typing import Callable, Generic, Optional, TypeVar

from ._contracts import Contracts
from .._state import state
from ._contracts import Contracts


F = TypeVar('F', bound=Callable)
Expand Down
2 changes: 1 addition & 1 deletion deal/_state.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from types import MappingProxyType
import warnings
from types import MappingProxyType
from typing import Callable, Mapping, TypeVar


Expand Down
1 change: 1 addition & 0 deletions deal/linter/_extractors/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .common import TOKENS, Extractor, Token, get_full_name, get_name, get_stub, infer
from .contracts import get_contracts


try:
import docstring_parser
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_linter/test_extractors/test_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ast
from pathlib import Path
import sys
from pathlib import Path
from textwrap import dedent
from typing import Dict

Expand Down
3 changes: 2 additions & 1 deletion tests/test_state.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os

import pytest

import deal
import deal.introspection
from deal._state import state
from deal._imports import deactivate
from deal._state import state

from .test_runtime.helpers import run_sync

Expand Down

0 comments on commit 87e0530

Please sign in to comment.