Skip to content

Commit

Permalink
Fix: add "from __future__ import annotations"
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanas committed Sep 6, 2023
1 parent 464279d commit be33f02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion babel/messages/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def extract_from_file(


def _match_messages_against_spec(lineno: int, messages: list[str|None], comments: list[str],
fileobj: _FileObj, spec: tuple[int|tuple, ...]):
fileobj: _FileObj, spec: tuple[int|tuple[int, str], ...]):
translatable = []
context = None

Expand Down
2 changes: 2 additions & 0 deletions babel/messages/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
:license: BSD, see LICENSE for more details.
"""

from __future__ import annotations

import datetime
import fnmatch
import logging
Expand Down

0 comments on commit be33f02

Please sign in to comment.