Skip to content

Commit

Permalink
Add from __future__ import annotations everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
scravy committed Jan 11, 2023
1 parent b7efe79 commit ec62254
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apm/__pkginfo__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.24.3"
__version__ = "0.24.4"
2 changes: 2 additions & 0 deletions apm/agg.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from typing import Union

from apm.core import Aggregation
Expand Down
3 changes: 3 additions & 0 deletions apm/generic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from __future__ import annotations


def _elements(thing):
try:
yield from thing.__dict__.values()
Expand Down
2 changes: 2 additions & 0 deletions apm/guarded.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from .core import MatchResult, apply


Expand Down
2 changes: 2 additions & 0 deletions apm/match.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import re
from itertools import chain
from typing import Union, Any, Optional
Expand Down
2 changes: 2 additions & 0 deletions apm/overload.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import functools
import inspect
import typing
Expand Down
2 changes: 2 additions & 0 deletions apm/patterns.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import numbers
import operator as ops
import re
Expand Down
2 changes: 2 additions & 0 deletions apm/try_match.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import sys

from .core import MatchContext, MatchResult, apply
Expand Down
2 changes: 2 additions & 0 deletions apm/typefoo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import inspect
import typing
from dataclasses import dataclass
Expand Down

0 comments on commit ec62254

Please sign in to comment.