interrogate icon indicating copy to clipboard operation
interrogate copied to clipboard

Python Match|Case no support?

Open TheRealVizard opened this issue 3 years ago • 0 comments

Environment

  • interrogate version(s) (interrogate --version: 1.5.0
  • Operating System(s): Linux
  • Python version(s): 3.10

Description of the bug

Interrogate fails with new match syntax image

What you expected to happen

Pass

How to reproduce (as minimally and precisely as possible)

Get the coverage of your code when match is used in it.

Anthing else we need to know?

One posible solution

# https://github.com/Instagram/LibCST/issues/285#issuecomment-1011427731
if sys.version_info.major >= 3 and sys.version_info.minor >= 10:
    os.environ["LIBCST_PARSER_TYPE"] = "native"

TheRealVizard avatar Jul 11 '22 22:07 TheRealVizard