Skip to content

Commit 2e7286d

Browse files
committed
more future
1 parent c35bea3 commit 2e7286d

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

adaptive/_version.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# This file is part of 'miniver': https://github.com/jbweston/miniver
22
#
3+
from __future__ import annotations
4+
35
import os
46
import subprocess
57
from collections import namedtuple
6-
from typing import Dict, List
78

89
from setuptools.command.build_py import build_py as build_py_orig
910
from setuptools.command.sdist import sdist as sdist_orig
1011

1112
Version = namedtuple("Version", ("release", "dev", "labels"))
1213

1314
# No public API
14-
__all__: List[str] = []
15+
__all__: list[str] = []
1516

1617
package_root = os.path.dirname(os.path.realpath(__file__))
1718
package_name = os.path.basename(package_root)
@@ -40,8 +41,8 @@ def get_version(version_file: str = STATIC_VERSION_FILE) -> str:
4041
return version_info["version"]
4142

4243

43-
def get_static_version_info(version_file: str = STATIC_VERSION_FILE) -> Dict[str, str]:
44-
version_info: Dict[str, str] = {}
44+
def get_static_version_info(version_file: str = STATIC_VERSION_FILE) -> dict[str, str]:
45+
version_info: dict[str, str] = {}
4546
with open(os.path.join(package_root, version_file), "rb") as f:
4647
exec(f.read(), {}, version_info)
4748
return version_info

adaptive/notebook_integration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import asyncio
24
import datetime
35
import importlib

adaptive/runner.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,10 @@ def elapsed_time(self):
393393
394394
Is called in `overhead`.
395395
"""
396-
pass
397396

398397
@abc.abstractmethod
399398
def _submit(self, x):
400399
"""Is called in `_get_futures`."""
401-
pass
402400

403401
@property
404402
def tracebacks(self) -> List[Tuple[int, str]]:

adaptive/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import abc
24
import functools
35
import gzip

0 commit comments

Comments
 (0)