Skip to content

Commit

Permalink
fix: older Python versions don't know about new function args syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tadams42 committed Jul 21, 2023
1 parent 013e036 commit cdbb8e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
data-layer: ["SQLAlchemy 1.x", "SQLAlchemy 2.x"]
db-api: ["sqlite", "psycopg 2", "psycopg 3"]
runs-on: ${{ matrix.os }}
name: "${{ matrix.os }} 🔹 🐍 ${{ matrix.python-version }} 🔹 ${{ matrix.data-layer }} 🔹 ${{ matrix.db-api }}"
name: "🐍 ${{ matrix.python-version }} 🔹 ${{ matrix.data-layer }} 🔹 ${{ matrix.db-api }}"

steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def convert(error: Union[int, Exception]) -> Union[List[dict], dict]:


class ExceptionConverter(abc.ABC):
def __init_subclass__(cls, /, **kwargs):
super().__init_subclass__(**kwargs)
def __init_subclass__(cls, *args, **kwargs):
super().__init_subclass__(*args, **kwargs)
ConvertersRegistry.register(cls)

@abc.abstractclassmethod
Expand Down

0 comments on commit cdbb8e3

Please sign in to comment.