Function
read_overload_part
(data: ReadBuffer, tag: Tag | None = None)
Source from the content-addressed store, hash-verified
| 5499 | |
| 5500 | |
| 5501 | def read_overload_part(data: ReadBuffer, tag: Tag | None = None) -> OverloadPart: |
| 5502 | if tag is None: |
| 5503 | tag = read_tag(data) |
| 5504 | if tag == DECORATOR: |
| 5505 | return Decorator.read(data) |
| 5506 | if tag == FUNC_DEF: |
| 5507 | return FuncDef.read(data) |
| 5508 | assert False, f"Invalid tag for an OverloadPart {tag}" |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…