Skip to content

Commit

Permalink
Fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Apr 12, 2020
1 parent 9ba2cf5 commit edc6cf5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion gaphor/UML/uml.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
PackageableElement,
)
from gaphor.core.modeling.collection import collection
from gaphor.core.modeling.element import Element
from gaphor.core.modeling.properties import (
association,
attribute,
Expand Down
4 changes: 2 additions & 2 deletions gaphor/core/modeling/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def __delitem__(self, key: T) -> None:
def __getitem__(self, key: int) -> T:
...

@overload # noqa: F811
def __getitem__(self, key: slice) -> List[T]:
@overload
def __getitem__(self, key: slice) -> List[T]: # noqa: F811
...

def __getitem__(self, key: Union[int, slice]): # noqa: F811
Expand Down
8 changes: 4 additions & 4 deletions gaphor/core/modeling/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class relation_one(Protocol[E]):
def __get__(self, obj: None, class_=None) -> relation_one[E]:
...

@overload # noqa: F811
def __get__(self, obj, class_=None) -> E:
@overload
def __get__(self, obj, class_=None) -> E: # noqa: F811
...

def __set__(self, obj, value: E) -> None:
Expand All @@ -95,8 +95,8 @@ class relation_many(Protocol[E]):
def __get__(self, obj: None, class_=None) -> relation_many[E]:
...

@overload # noqa: F811
def __get__(self, obj, class_=None) -> collection[E]:
@overload
def __get__(self, obj, class_=None) -> collection[E]: # noqa: F811
...

def __set__(self, obj, value: E) -> None:
Expand Down

0 comments on commit edc6cf5

Please sign in to comment.