wemake-services / dotenv-linter

:relaxed: Linting dotenv files like a charm!
https://dotenv-linter.rtfd.io
MIT License
275 stars 9 forks source link

Replace deprecated typing.re with typing #710

Open nifadyev opened 1 month ago

nifadyev commented 1 month ago

Bug report

What's wrong

typing.re is deprecated and will be removed in python 3.13

dotenv_linter/visitors/fst/names.py:3
  /dotenv-linter/dotenv_linter/visitors/fst/names.py:3: DeprecationWarning: typing.re is deprecated, import directly from typing instead. typing.re will be removed in Python 3.13.
    from typing.re import Pattern

How is that should be

Use from typing import Pattern instead

sobolevn commented 1 month ago

Good idea!