pdoc3 / pdoc

:snake: :arrow_right: :scroll: Auto-generate API documentation for Python projects
https://pdoc3.github.io/pdoc/
GNU Affero General Public License v3.0
1.11k stars 143 forks source link

syntax error with match-case function #428

Closed rqm243 closed 1 week ago

rqm243 commented 11 months ago

Hi trying to run pdoc for a module but keeps coming up with a syntax error.

The command used to run pdoc:

pdoc {PKG_name} --html --output-dir public --config "syntax_highlighting=False"  

This generates an error:

    match num:
          ^
SyntaxError: invalid syntax
kernc commented 1 week ago

The error most likely comes from the fact that your codebase contains match keywords, but you're running pdoc in an environment with Python version < 3.10, before the keyword was made available ...

Please reopen if not the case.