Skip to content

Commit ca58034

Browse files
committed
doc: extension bracket access tip
1 parent e02b90e commit ca58034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Schema extensions
236236

237237
:rfc:`RFC7643 §3.3 <7643#section-3.3>` extensions are supported.
238238
Any class inheriting from :class:`~scim2_models.Extension` can be passed as a :class:`~scim2_models.Resource` type parameter, e.g. ``user = User[EnterpriseUser]`` or ``user = User[Union[EnterpriseUser, SuperHero]]``.
239-
Extensions attributes are accessed with brackets, e.g. ``user[EnterpriseUser].employee_number``.
239+
Extensions attributes are accessed with brackets, e.g. ``user[EnterpriseUser].employee_number``, where ``user[EnterpriseUser]`` is a shortcut for ``user["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"]``.
240240

241241
.. code-block:: python
242242

0 commit comments

Comments
 (0)