Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
# This product contains a modified portion of 'Flask App Builder' developed by Daniel Vaz Gaspar.
# (https://github.com/dpgaspar/Flask-AppBuilder).
# Copyright 2013, Daniel Vaz Gaspar
from typing import TYPE_CHECKING

from flask import current_app, g
from flask_appbuilder import Model
from sqlalchemy import (
Expand All @@ -45,12 +43,6 @@
from airflow.api_fastapi.auth.managers.models.base_user import BaseUser
from airflow.providers.common.compat.sqlalchemy.orm import mapped_column

if TYPE_CHECKING:
try:
from sqlalchemy import Identity
except Exception:
Identity = None

"""
Compatibility note: The models in this file are duplicated from Flask AppBuilder.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@

@pytest.mark.parametrize(
"user_id, expected_id",
[
(999, "999"),
("999", "999"),
],
[(999, "999")],
)
def test_get_id_returns_str(user_id: int | str, expected_id: str) -> None:
def test_get_id_returns_str(user_id: int, expected_id: str) -> None:
"""
Ensure get_id() always returns a string representation of the id.
"""
Expand Down