Skip to content

Commit d7c95ba

Browse files
authored
Fix linting and testing errors (typeddjango#272)
- Fixes Black formatting and import order in `django-stubs/db/transaction.pyi`. - ~~Fixes expected Pyright error messages in `tests/pyright/test_arrays.py` and `tests/pyright/test_fields.py`.~~ Edit: With Python pinned to 3.8.18, these message changes are no longer necessary. These changes allow `./s/lint` to run successfully on my machine.
1 parent 0570ee8 commit d7c95ba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
2020
- uses: actions/setup-python@v4
2121
with:
22-
python-version: "3.8"
2322
cache: "poetry"
2423

2524
- name: Use Node.js

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8.19
1+
3.8.18

django-stubs/db/transaction.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from collections.abc import Callable, Iterator
22
from contextlib import contextmanager
3+
from types import TracebackType
34
from typing import Any, TypeVar, overload
45

5-
from types import TracebackType
66
from django.db import ProgrammingError
77

88
class TransactionManagementError(ProgrammingError): ...
@@ -40,8 +40,9 @@ class Atomic:
4040
self,
4141
exc_type: type[BaseException] | None,
4242
exc_value: BaseException | None,
43-
traceback: TracebackType | None, /
43+
traceback: TracebackType | None,
4444
) -> None: ...
45+
4546
# Bare decorator
4647
@overload
4748
def atomic(using: _C) -> _C: ...

0 commit comments

Comments
 (0)