Azure / msrest-for-python

The runtime library "msrest" for AutoRest generated Python clients.
MIT License
41 stars 64 forks source link

[feature] Immutable, hashable models, with text representations #243

Open lmmarsano opened 3 years ago

lmmarsano commented 3 years ago

Similar to objects we get from frozen dataclasses or frozen pydantic models, simple data that we can compare and treat as values would be useful for debugging (eg, stack traces in test frameworks that reveal values) & general productivity. Basically, define

and block setting properties. Models with different attributes can already be created via serialize & deserialize methods.