Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ is_valid_field_name
Function
is_valid_field_name
pydantic/_internal/_fields.py:681–682 ·
view source on GitHub ↗
(name: str)
Source
from the content-addressed store, hash-verified
679
680
681
def
is_valid_field_name(name: str) -> bool:
682
return
not name.startswith(
'_'
)
683
684
685
def
is_valid_privateattr_name(name: str) -> bool:
Callers
2
inspect_namespace
Function · 0.85
collect_model_fields
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected