python-atom
No description set
- Sources inherited from project devel:languages:python
- Devel package for openSUSE:Factory
-
1
derived packages
- Links to openSUSE:Factory / python-atom
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/python-atom && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
0.7.0.tar.gz | 0000134670 132 KB | |
_link | 0000000124 124 Bytes | |
python-atom.changes | 0000003744 3.66 KB | |
python-atom.spec | 0000001996 1.95 KB |
Revision 11 (latest revision is 25)
Dirk Mueller (dirkmueller)
accepted
request 936060
from
John Paul Adrian Glaubitz (glaubitz)
(revision 11)
- Update to 0.7.0: * allow to use any subscribed type in Typed and Instance. Optional and Union are analyzed to extract the tuple of types to validate. The presence of NoneType in the tuple will make the member optional. For container types (list, dict, set, etc) the content types is not used beyond static type validation. PR #136 #140 Note however that this usage of Optional and Union breaks static analyzer currently, while things deriving from an actual type will work as expected (List[int], list[int], Iterable[int]) * make the factory argument of Typed, Instance and their forwarded version keyword only. PR #123 * add a keyword-only argument to Typed, Instance and their forwarded version: ``optional``. When set to False, this will cause those members to reject None as a valid value. The default value, None, will resolve to True if there is no provided way to build a default value. PR #123 # 131 This is backward incompatible since previously None was always a valid value. * the Instance and Typed variants of the Validate enum have been renamed to OptionalInstance, OptionalTyped and new Instance and Typed variant describing the validation behavior for the member with optional=False have been added. PR #123 * consistently use Instance to wrap types passed to containers. PR #123 For containers, Instance members used for validation are created with optional=False by default. This is backward incompatible since None was always a valid value previously. * add strict argument to FloatRange. PR #124 * allow to specify the type of ReadOnly and Constant. PR #128 The validation is done using the Instance validator. The change for ReadOnly is backward incompatible since the type or tuple of type is the first argument in place of the default value. Specifying the default value by keyword is both forward and backward compatible. * use python stdlib IntEnum instead of the custom one in atom PR #122 * remove the custom atom.IntEnum PR #122
Comments 0