Fixes: (1) Removed all `# type: ignore` annotations across the codebase; (2) Fixed usage of Django Model methods by eliminating unnecessary `# type: ignore` directives; (3) Adjusted usage of functions like `get()` to align with method expectations, removing incorrect comments; Extra: (1) Deleted `pyrightconfig.json` as part of migration to a stricter type-checked environment; (2) Minor code cleanup, including formatting changes and refactoring import statements in adherence to PEP8 recommendations.
13 lines
417 B
Python
13 lines
417 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class BlogConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
name = "engine.blog"
|
|
verbose_name = _("blog")
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
def ready(self) -> None:
|
|
import engine.blog.elasticsearch.documents # noqa: F401
|
|
import engine.blog.signals # noqa: F401
|