Skip to content

Commit

Permalink
fix: mypy static analysis error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofahmy143 committed Oct 1, 2024
1 parent fb468de commit b7b3df3
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
39 changes: 38 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pytest-asyncio = "^0.24.0"
pytest-xdist = "^3.6.1"
requests = "^2.32.3"
alembic = "^1.13.3"
fastapi = "^0.115.0"



Expand Down
2 changes: 1 addition & 1 deletion test/alembic/versions/479bd311af91_initial_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.create_policy(
op.create_policy( # type: ignore
table_name="items",
policy_name="items_permissive_all_policy_0",
cmd="ALL",
Expand Down
5 changes: 4 additions & 1 deletion test/models.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
from typing import Any
from rls.schemas import (
Permissive,
Command,
)


# Base = register_rls(declarative_base())
# To avoid deletion by pre-commit hooks
_Any = Any

Base = declarative_base() # type: Any


Expand Down

0 comments on commit b7b3df3

Please sign in to comment.