Skip to content

Commit

Permalink
Import Protocol from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Apr 4, 2024
1 parent cc8aa55 commit 017fa4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/baseframe/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import os.path
from datetime import tzinfo
from typing import Union, cast
from typing_extensions import LiteralString, Protocol
from typing import Protocol, Union, cast
from typing_extensions import LiteralString

from flask import current_app, request
from flask_babel import Babel, Domain
Expand Down
3 changes: 1 addition & 2 deletions src/baseframe/forms/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
from collections.abc import Iterable, Mapping
from datetime import datetime, tzinfo
from decimal import Decimal, InvalidOperation as DecimalError
from typing import Any, Callable, Optional, Union, cast, runtime_checkable
from typing_extensions import Protocol
from typing import Any, Callable, Optional, Protocol, Union, cast, runtime_checkable
from urllib.parse import urljoin

import bleach
Expand Down
4 changes: 2 additions & 2 deletions src/baseframe/forms/typing.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Form type aliases and protocols."""

from collections.abc import Generator, Iterable, Sequence
from typing import Any, Callable
from typing_extensions import Protocol, TypeAlias
from typing import Any, Callable, Protocol
from typing_extensions import TypeAlias

from markupsafe import Markup
from wtforms import Field as WTField, Form as WTForm
Expand Down

0 comments on commit 017fa4b

Please sign in to comment.