Skip to content
Snippets Groups Projects

Remove support for Python 3.8

Merged I. Nüske requested to merge f-remove-py38-pipeline into dev
Files
5
@@ -23,11 +23,7 @@
@@ -23,11 +23,7 @@
# ** end header
# ** end header
#
#
from copy import deepcopy
from copy import deepcopy
# TODO(fspreck) for backwards compatibility with Python < 3.9 but this is
from typing import Optional
# actually
# [deprecated](https://docs.python.org/3/library/typing.html#typing.List), so
# remove this, when we drop support for old Python versions.
from typing import List, Optional
import linkahead as db
import linkahead as db
import linkahead.common.models as models
import linkahead.common.models as models
@@ -85,7 +81,7 @@ class DataModel(dict):
@@ -85,7 +81,7 @@ class DataModel(dict):
def append(self, entity: db.Entity):
def append(self, entity: db.Entity):
self[entity.name] = entity
self[entity.name] = entity
def extend(self, entities: List[db.Entity]):
def extend(self, entities: list[db.Entity]):
for entity in entities:
for entity in entities:
self.append(entity)
self.append(entity)
Loading