Skip to content

Commit

Permalink
chore: add from __future__ import annotations to rest of package files
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilland committed Jul 21, 2024
1 parent e6b2ffa commit b7e5d68
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pydash/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
.. versionadded:: 1.0.0
"""

from __future__ import annotations

from functools import cmp_to_key
import random
import typing as t
Expand Down
3 changes: 3 additions & 0 deletions src/pydash/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
.. versionadded:: 1.0.0
"""

from __future__ import annotations


__all__ = ("InvalidMethod",)


Expand Down
2 changes: 2 additions & 0 deletions src/pydash/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
.. versionadded:: 1.0.0
"""

from __future__ import annotations

from functools import cached_property
from inspect import getfullargspec
import itertools
Expand Down
2 changes: 2 additions & 0 deletions src/pydash/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Generic utility methods not part of main API."""

from __future__ import annotations

import builtins
from collections.abc import Hashable, Iterable, Mapping, Sequence
from decimal import Decimal
Expand Down
2 changes: 2 additions & 0 deletions src/pydash/predicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
.. versionadded:: 2.0.0
"""

from __future__ import annotations

from collections.abc import Iterable, Mapping
import datetime
from itertools import islice
Expand Down
2 changes: 2 additions & 0 deletions src/pydash/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
.. versionadded:: 1.1.0
"""

from __future__ import annotations

import html
import math
import re
Expand Down
8 changes: 8 additions & 0 deletions src/pydash/types.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Common types.
.. versionadded:: 7.0.0
"""

from __future__ import annotations

from decimal import Decimal
import typing as t

Expand Down
2 changes: 2 additions & 0 deletions src/pydash/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
.. versionadded:: 1.0.0
"""

from __future__ import annotations

from collections import namedtuple
from datetime import datetime, timezone
from functools import partial, wraps
Expand Down

0 comments on commit b7e5d68

Please sign in to comment.