From 5907b3efdca6ff63aa6df9c6e0dbb2f281fa14cc Mon Sep 17 00:00:00 2001 From: shortcuts Date: Wed, 20 Nov 2024 16:57:04 +0100 Subject: [PATCH] chore: setup pyright --- algoliasearch_django/models.py | 2 +- tox.ini | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/algoliasearch_django/models.py b/algoliasearch_django/models.py index 63e7cb3..e48da08 100644 --- a/algoliasearch_django/models.py +++ b/algoliasearch_django/models.py @@ -5,7 +5,7 @@ from itertools import chain import logging -from algoliasearch.exceptions import AlgoliaException +from algoliasearch.http.exceptions import AlgoliaException from django.db.models.query_utils import DeferredAttribute from .settings import DEBUG diff --git a/tox.ini b/tox.ini index ddc98c9..d835757 100644 --- a/tox.ini +++ b/tox.ini @@ -72,3 +72,4 @@ commands = pip3 freeze > requirements.txt ruff check --fix --unsafe-fixes ruff format . + pyright