Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ethrgeist opened this issue Sep 12, 2024 · 2 comments

Comments

@ethrgeist
Copy link
Contributor

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(
@timvink
Copy link
Owner

timvink commented Sep 12, 2024

This should be fixed in #144 , making a new release now

@timvink
Copy link
Owner

timvink commented Sep 12, 2024

Released: https://pypi.org/project/mkdocs-git-revision-date-localized-plugin/

@timvink timvink closed this as completed Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants