File: parser_cache.py

package info (click to toggle)
python-jedi 0.18.2-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 11,660 kB
  • sloc: python: 28,554; makefile: 172; ansic: 13
file content (6 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
from jedi.inference.cache import inference_state_function_cache


@inference_state_function_cache()
def get_yield_exprs(inference_state, funcdef):
    return list(funcdef.iter_yield_exprs())