Skip to content

Commit

Permalink
Fix typing for python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanzwicknagl committed Dec 5, 2024
1 parent 54f81ea commit b99223f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = viasp-backend
version = 2.2.0
version = 2.2.0.post0
author = Luis Glaser
author_email = Luis.Glaser@uni-potsdam.de
description = The backend for the viasp package.
Expand Down
2 changes: 1 addition & 1 deletion backend/src/viasp/asp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def merge_cycles(g: nx.DiGraph, program_str) -> Tuple[nx.DiGraph, FrozenSet[Rule
return nx.relabel_nodes(g, mapping), frozenset(where_recursion_happens)


def merge_nodes(nodes: set[RuleContainer], program_str: str) -> RuleContainer:
def merge_nodes(nodes: Set[RuleContainer], program_str: str) -> RuleContainer:
old = set()
for x in nodes:
old.update(x.ast)
Expand Down
6 changes: 3 additions & 3 deletions backend/src/viasp/shared/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from dataclasses import dataclass, field
from enum import Enum
from inspect import Signature as inspect_Signature
from typing import Any, Sequence, Dict, Union, FrozenSet, Collection, List, Tuple
from typing import Any, Sequence, Dict, Union, FrozenSet, Collection, List, Tuple, Type
from types import MappingProxyType
from uuid import UUID, uuid4

Expand Down Expand Up @@ -260,10 +260,10 @@ class TransformationError:

@dataclass
class TransformerTransport:
transformer: type[Transformer]
transformer: Type[Transformer]
imports: str
path: str

@classmethod
def merge(cls, transformer: type[Transformer], imports: str, path: str):
def merge(cls, transformer: Type[Transformer], imports: str, path: str):
return cls(transformer, imports, path)
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = viasp
version = 2.2.0
version = 2.2.0.post0
author = Luis Glaser
author_email = Luis.Glaser@uni-potsdam.de
description = a visualization tool for clingo.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run(self):
EMAIL = 'Luis.Glaser@uni-potsdam.de'
AUTHOR = 'Luis Glaser'
REQUIRES_PYTHON = '>=3.8.0'
VERSION = '2.2.0'
VERSION = '2.2.0.post0'

# What packages are required for this module to be executed?
REQUIRED = [
Expand Down

0 comments on commit b99223f

Please sign in to comment.