Skip to content

Commit 2fb58ed

Browse files
[pre-commit.ci] pre-commit autoupdate (#371)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6bf5144 commit 2fb58ed

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
2-
- repo: https://github.com/myint/autoflake
3-
rev: v1.4
2+
- repo: https://github.com/PyCQA/autoflake
3+
rev: v2.0.0
44
hooks:
55
- id: autoflake
66
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
@@ -12,15 +12,15 @@ repos:
1212
args: ["--profile", "black", "--filter-files"]
1313

1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.1.0
15+
rev: v4.4.0
1616
hooks:
1717
- id: trailing-whitespace
1818
exclude: ^docs/.*|.*.md
1919
- id: end-of-file-fixer
2020
exclude: ^docs/.*|.*.md
2121

2222
- repo: https://github.com/psf/black
23-
rev: 22.1.0
23+
rev: 22.10.0
2424
hooks:
2525
- id: black
2626
language_version: python3

model_subscription/decorators.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
from functools import partial
2-
from typing import Any, Callable, Optional, Type
32

43
from django.conf import settings
54

65
from model_subscription.constants import OperationType
7-
from model_subscription.mixin import SubscriptionModelMixin
8-
from model_subscription.types import T
96

107
__all__ = [
118
"subscribe",

model_subscription/observers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import threading
22
from abc import ABC, abstractmethod
3-
from typing import Callable, Dict, List, NoReturn, Tuple, Union, overload
4-
5-
from django.db import models
3+
from typing import overload
64

75
from model_subscription.constants import OperationType
86

model_subscription/subscriber.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from abc import ABC, abstractmethod
2-
from typing import Any, Callable, FrozenSet, List, Optional, Tuple, Type, Union
32

43
from django.conf import settings
5-
from django.db import models
64
from django.utils.module_loading import autodiscover_modules
75

86
from model_subscription.constants import OperationType
@@ -12,7 +10,6 @@
1210
BulkUpdateObserver,
1311
CreateObserver,
1412
DeleteObserver,
15-
Observer,
1613
UpdateObserver,
1714
)
1815

0 commit comments

Comments
 (0)