Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ Model
Class
Model
tests/test_forward_ref.py:580–581 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
578
579
def
test_private_attr_annotation_not_evaluated() -> None:
580
class
Model(BaseModel):
581
_a:
'UnknownAnnotation'
582
583
assert
'_a'
in Model.__private_attributes__
584
Callers
3
test_uses_the_local_namespace_when_generating_schema
Function · 0.70
test_uses_the_correct_globals_to_resolve_dataclass_forward_refs
Function · 0.70
test_none_converted_as_none_type
Function · 0.70
Calls
2
Field
Function · 0.90
PlainSerializer
Class · 0.90
Tested by
3
test_uses_the_local_namespace_when_generating_schema
Function · 0.56
test_uses_the_correct_globals_to_resolve_dataclass_forward_refs
Function · 0.56
test_none_converted_as_none_type
Function · 0.56