File: util.py

package info (click to toggle)
python-openapi-core 0.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,104 kB
  • sloc: python: 19,979; makefile: 44
file content (5 lines) | stat: -rw-r--r-- 153 bytes parent folder | download | duplicates (2)
1
2
3
4
5
from openapi_core.templating.paths.datatypes import Path


def template_path_len(template_path: Path) -> int:
    return len(template_path[1].variables)