Skip to main content

of

Function of 

Source
pub fn of(unit: &FnUnit<'_>, imports: &Imports) -> Coverage
Expand description

Compute the annotation-slot coverage + Any/decorator signals of unit.

imports lets typing.Any / typing.cast be recognized by resolving the attribute base through the file’s import table (so an aliased import typing as t matches, while an unrelated mymod.Any / obj.cast(...) does not).