Skip to content

Commit 6b559bf

Browse files
author
Rakshith Bhyravabhotla
authored
Add NULL to readme (#17076)
* null to read me * Update sdk/core/azure-core/README.md
1 parent 0bc271d commit 6b559bf

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

sdk/core/azure-core/README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,21 @@ class MyCustomEnum(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
179179
BAR = 'bar'
180180
```
181181

182+
#### Null Sentinel Value
183+
184+
A falsy sentinel object which is supposed to be used to specify attributes
185+
with no data. This gets serialized to `null` on the wire.
186+
187+
```python
188+
from azure.core.serialization import NULL
189+
190+
assert bool(NULL) is False
191+
192+
foo = Foo(
193+
attr=NULL
194+
)
195+
```
196+
182197
## Contributing
183198
This project welcomes contributions and suggestions. Most contributions require
184199
you to agree to a Contributor License Agreement (CLA) declaring that you have
@@ -198,4 +213,4 @@ or contact [[email protected]](mailto:[email protected]) with any
198213
additional questions or comments.
199214

200215
<!-- LINKS -->
201-
[package]: https://pypi.org/project/azure-core/
216+
[package]: https://pypi.org/project/azure-core/

0 commit comments

Comments
 (0)