Skip to content

Commit

Permalink
Merge branch 'abstract-members' of https://github.com/knutnergaard/fo…
Browse files Browse the repository at this point in the history
…ntParts into abstract-members
  • Loading branch information
knutnergaard committed Dec 5, 2024
2 parents 746f6f1 + 9089845 commit 2a1cb7c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Lib/fontParts/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,9 +1404,7 @@ def _getSelectedSubObjects(cls, subObjects: Any) -> Tuple[Any]:
return selected

@classmethod
def _setSelectedSubObjects(
cls, subObjects: Any, selected: Any
) -> None:
def _setSelectedSubObjects(cls, subObjects: Any, selected: Any) -> None:
for obj in subObjects:
obj.selected = obj in selected

Expand Down
12 changes: 11 additions & 1 deletion Lib/fontParts/base/contour.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
from __future__ import annotations
from typing import (TYPE_CHECKING, cast, Any, Iterator, List, Optional, Tuple, TypeVar, Union)
from typing import (
TYPE_CHECKING,
cast,
Any,
Iterator,
List,
Optional,
Tuple,
TypeVar,
Union,
)

from fontParts.base.errors import FontPartsError
from fontParts.base.base import (
Expand Down
12 changes: 11 additions & 1 deletion Lib/fontParts/base/layer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# pylint: disable=C0103, C0302, C0114, W0613
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Any, Callable, Iterator, List, NoReturn, Optional, Tuple, TypeVar
from typing import (
TYPE_CHECKING,
Any,
Callable,
Iterator,
List,
NoReturn,
Optional,
Tuple,
TypeVar,
)
import collections

from fontParts.base.base import (
Expand Down

0 comments on commit 2a1cb7c

Please sign in to comment.