Skip to content

DeprecationWarning: Do not access Theme._vars, instead access the keys of Theme directly #145

Closed
@ethrgeist

Description

@ethrgeist

I'm using

  • mkdocs-git-revision-date-localized-plugin version 1.2.8
  • mkdocs version 1.6.1
  • mkdocs-materialversion 9.5.34

and i am getting the following deprecation warning:

INFO    -  DeprecationWarning: Do not access Theme._vars, instead access the keys of Theme directly.
             File "/some/random/pyenv/pypoetry/virtualenvs/sillyproject-py3.12/lib/python3.12/site-packages/mkdocs_git_revision_date_localized_plugin/plugin.py", line 81, in on_config
               theme_locale = custom_theme._vars.get("language")
             File "/some/random/pyenv/pypoetry/virtualenvs/sillyproject-py3.12/lib/python3.12/site-packages/mkdocs/theme.py", line 87, in _vars
               warnings.warn(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions