chore: Update some type hints in config. (#5833)
This commit is contained in:
parent
af308b99a3
commit
32d85fb896
3 changed files with 5 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ class CeleryConfig(DatabaseConfig):
|
|||
|
||||
@computed_field
|
||||
@property
|
||||
def CELERY_RESULT_BACKEND(self) -> str:
|
||||
def CELERY_RESULT_BACKEND(self) -> str | None:
|
||||
return 'db+{}'.format(self.SQLALCHEMY_DATABASE_URI) \
|
||||
if self.CELERY_BACKEND == 'database' else self.CELERY_BROKER_URL
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue