Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jul 7, 2024
1 parent 3afd651 commit d6e5e35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions {{cookiecutter.project_name}}/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import os
import sys
from typing import cast

import django
import tomli
Expand All @@ -30,9 +31,9 @@

# -- Project information -----------------------------------------------------

def _get_project_meta() -> dict[str, str]: # lying abour return type
def _get_project_meta() -> dict[str, str]: # lying about return type
with open('../pyproject.toml', mode='rb') as pyproject:
return tomli.load(pyproject)['tool']['poetry']
return cast(dict[str, str], tomli.load(pyproject)['tool']['poetry'])


pkg_meta = _get_project_meta()
Expand Down

0 comments on commit d6e5e35

Please sign in to comment.