From d4b2085777f24910de716ec9361352885745e479 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Wed, 27 Nov 2024 11:40:54 +0100 Subject: [PATCH] chore: ignore at the correct spot --- algoliasearch_django/decorators.py | 16 ++++++++-------- setup.py | 1 + tox.ini | 7 +++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/algoliasearch_django/decorators.py b/algoliasearch_django/decorators.py index b5e422e..9b9adea 100644 --- a/algoliasearch_django/decorators.py +++ b/algoliasearch_django/decorators.py @@ -58,21 +58,21 @@ def __init__(self, model=None): def __enter__(self): for model in self.models: post_save.disconnect( - algolia_engine._AlgoliaEngine__post_save_receiver, - sender=model, # pyright: ignore + algolia_engine._AlgoliaEngine__post_save_receiver, # pyright: ignore + sender=model, ) pre_delete.disconnect( - algolia_engine._AlgoliaEngine__pre_delete_receiver, - sender=model, # pyright: ignore + algolia_engine._AlgoliaEngine__pre_delete_receiver, # pyright: ignore + sender=model, ) def __exit__(self, exc_type, exc_value, traceback): for model in self.models: post_save.connect( - algolia_engine._AlgoliaEngine__post_save_receiver, - sender=model, # pyright: ignore + algolia_engine._AlgoliaEngine__post_save_receiver, # pyright: ignore + sender=model, ) pre_delete.connect( - algolia_engine._AlgoliaEngine__pre_delete_receiver, - sender=model, # pyright: ignore + algolia_engine._AlgoliaEngine__pre_delete_receiver, # pyright: ignore + sender=model, ) diff --git a/setup.py b/setup.py index ff7cd0f..69affeb 100644 --- a/setup.py +++ b/setup.py @@ -64,6 +64,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Internet :: WWW/HTTP", ], ) diff --git a/tox.ini b/tox.ini index 83a3d63..592e645 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,6 @@ envlist = {py310,py311,py312,py313}-django51 coverage skip_missing_interpreters = True -allowlist_externals = True [testenv] deps = @@ -33,7 +32,7 @@ ruff = >=0.7.4,<1.0 pyright = >=1.1.389,<2.0 [testenv:coverage] -basepython = python3.11 +basepython = python3.13 deps = coverage passenv = ALGOLIA* @@ -42,7 +41,7 @@ commands = coverage report [testenv:coveralls] -basepython = python3.11 +basepython = python3.13 deps = coverage coveralls @@ -54,7 +53,7 @@ commands = coveralls [testenv:release] -basepython = python3.11 +basepython = python3.13 deps = twine {[versions]twine} wheel {[versions]wheel}