Skip to content

Commit

Permalink
Merge pull request #90 from DanCardin/dc/role-sequence
Browse files Browse the repository at this point in the history
fix: Accept more generic sequence to roles.
  • Loading branch information
DanCardin authored Sep 17, 2024
2 parents bdf9223 + 4d8a1d5 commit 20895b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sqlalchemy-declarative-extensions"
version = "0.15.0"
version = "0.15.1"
authors = ["Dan Cardin <ddcardin@gmail.com>"]

description = "Library to declare additional kinds of objects not natively supported by SQLAlchemy/Alembic."
Expand Down
4 changes: 2 additions & 2 deletions src/sqlalchemy_declarative_extensions/role/base.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from __future__ import annotations

from dataclasses import dataclass, field, replace
from typing import Generator, Iterable
from typing import Generator, Iterable, Sequence

from sqlalchemy_declarative_extensions.dialects import postgresql
from sqlalchemy_declarative_extensions.role import generic


@dataclass
class Roles:
roles: list[postgresql.Role | generic.Role] = field(default_factory=list)
roles: Sequence[postgresql.Role | generic.Role] = field(default_factory=list)
ignore_unspecified: bool = False
ignore_roles: list[str] = field(default_factory=list)

Expand Down

0 comments on commit 20895b7

Please sign in to comment.