Skip to content

Commit

Permalink
use from __future__ import annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Nov 12, 2024
1 parent cc565d0 commit b239743
Show file tree
Hide file tree
Showing 30 changed files with 429 additions and 359 deletions.
4 changes: 3 additions & 1 deletion scal3/color_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from __future__ import annotations

import typing

ColorType: "typing.TypeAlias" = "tuple[int,int,int] | tuple[int,int,int,int]"
ColorType: typing.TypeAlias = "tuple[int,int,int] | tuple[int,int,int,int]"


def rgbToInt(r, g, b):
Expand Down
4 changes: 3 additions & 1 deletion scal3/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/agpl.txt>.
from __future__ import annotations

import os
import os.path
import re
Expand Down Expand Up @@ -362,7 +364,7 @@ def validatePlugList() -> None:
m -= 1


def initPlugins(fs: "s_object.FileSystem") -> None:
def initPlugins(fs: s_object.FileSystem) -> None:
# log.debug("----------------------- initPlugins")
# Assert that user configuarion for plugins is OK
validatePlugList()
Expand Down
Loading

0 comments on commit b239743

Please sign in to comment.