Narrows a raw Doxygen prot attribute value to the access Literal
MethodModel/VariableModel/ConstantModel declare – real Doxygen XML only
ever emits one of these four values (or omits the attribute), but that
isn’t something a bare .get() call lets mypy verify on its own.
Methods
_resolve_access
_resolve_access(prot: Optional) -> Literal["public", "protected", "private", "package"]
Narrows a raw Doxygen prot attribute value to the access Literal
MethodModel/VariableModel/ConstantModel declare – real Doxygen XML only
ever emits one of these four values (or omits the attribute), but that
isn’t something a bare .get() call lets mypy verify on its own.
| Parameter | Type | Description |
|---|---|---|
| prot | Optional |
Generated with Flude
Copyright © 2026