Skip to content

Commit ec62254

Browse files
committed
Add from __future__ import annotations everywhere
1 parent b7efe79 commit ec62254

9 files changed

+18
-1
lines changed

apm/__pkginfo__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.24.3"
1+
__version__ = "0.24.4"

apm/agg.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import Union
24

35
from apm.core import Aggregation

apm/generic.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from __future__ import annotations
2+
3+
14
def _elements(thing):
25
try:
36
yield from thing.__dict__.values()

apm/guarded.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from .core import MatchResult, apply
24

35

apm/match.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import re
24
from itertools import chain
35
from typing import Union, Any, Optional

apm/overload.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import functools
24
import inspect
35
import typing

apm/patterns.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import numbers
24
import operator as ops
35
import re

apm/try_match.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import sys
24

35
from .core import MatchContext, MatchResult, apply

apm/typefoo.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import inspect
24
import typing
35
from dataclasses import dataclass

0 commit comments

Comments
 (0)