Skip to content
Snippets Groups Projects
Verified Commit 19492430 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Removed more Python 3.8 code.

parent 8429c402
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!127Remove support for Python 3.8
Pipeline #59748 canceled
...@@ -23,11 +23,6 @@ ...@@ -23,11 +23,6 @@
# ** end header # ** end header
# #
from copy import deepcopy from copy import deepcopy
# TODO(fspreck) for backwards compatibility with Python < 3.9 but this is
# 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
import linkahead as db import linkahead as db
import linkahead.common.models as models import linkahead.common.models as models
...@@ -85,7 +80,7 @@ class DataModel(dict): ...@@ -85,7 +80,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)
......
[tox] [tox]
envlist = py38, py39, py310, py311, py312, py313 envlist = py39, py310, py311, py312, py313
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment