omdev 0.0.0.dev268__py3-none-any.whl → 0.0.0.dev270__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
omdev/.manifests.json CHANGED
@@ -239,6 +239,18 @@
239
239
  }
240
240
  }
241
241
  },
242
+ {
243
+ "module": ".tools.diff",
244
+ "attr": "_CLI_MODULE",
245
+ "file": "omdev/tools/diff.py",
246
+ "line": 21,
247
+ "value": {
248
+ "$.cli.types.CliModule": {
249
+ "cmd_name": "diff",
250
+ "mod_name": "omdev.tools.diff"
251
+ }
252
+ }
253
+ },
242
254
  {
243
255
  "module": ".tools.doc",
244
256
  "attr": "_CLI_MODULE",
@@ -41,5 +41,7 @@ class ExtractAction(Action, lang.Final):
41
41
  @lang.static_init
42
42
  def _install_standard_marshalling() -> None:
43
43
  actions_poly = msh.polymorphism_from_subclasses(Action, naming=msh.Naming.SNAKE, strip_suffix=True)
44
- msh.STANDARD_MARSHALER_FACTORIES[0:0] = [msh.PolymorphismMarshalerFactory(actions_poly)]
45
- msh.STANDARD_UNMARSHALER_FACTORIES[0:0] = [msh.PolymorphismUnmarshalerFactory(actions_poly)]
44
+ msh.install_standard_factories(
45
+ msh.PolymorphismMarshalerFactory(actions_poly),
46
+ msh.PolymorphismUnmarshalerFactory(actions_poly),
47
+ )
omdev/cache/data/specs.py CHANGED
@@ -95,5 +95,7 @@ class GithubContentSpec(Spec):
95
95
  @lang.static_init
96
96
  def _install_standard_marshalling() -> None:
97
97
  specs_poly = msh.polymorphism_from_subclasses(Spec, naming=msh.Naming.SNAKE, strip_suffix=True)
98
- msh.STANDARD_MARSHALER_FACTORIES[0:0] = [msh.PolymorphismMarshalerFactory(specs_poly)]
99
- msh.STANDARD_UNMARSHALER_FACTORIES[0:0] = [msh.PolymorphismUnmarshalerFactory(specs_poly)]
98
+ msh.install_standard_factories(
99
+ msh.PolymorphismMarshalerFactory(specs_poly),
100
+ msh.PolymorphismUnmarshalerFactory(specs_poly),
101
+ )
@@ -65,17 +65,17 @@ def _install_standard_marshalling() -> None:
65
65
  msh.Impl(RequiresOp, 'op'),
66
66
  ],
67
67
  )
68
- msh.STANDARD_MARSHALER_FACTORIES[0:0] = [
68
+ msh.install_standard_factories(
69
69
  msh.PolymorphismMarshalerFactory(requires_node_poly),
70
+ msh.PolymorphismUnmarshalerFactory(requires_node_poly),
70
71
  msh.PolymorphismUnionMarshalerFactory(requires_node_poly.impls, allow_partial=True),
71
- RequiresMarkerListMarshalerFactory(),
72
+ )
72
73
 
73
- ]
74
- msh.STANDARD_UNMARSHALER_FACTORIES[0:0] = [
75
- msh.PolymorphismUnmarshalerFactory(requires_node_poly),
76
- ]
74
+ msh.install_standard_factories(
75
+ RequiresMarkerListMarshalerFactory(),
76
+ )
77
77
 
78
- msh.GLOBAL_REGISTRY.register(
78
+ msh.register_global(
79
79
  RequiresMarkerList,
80
80
  msh.ReflectOverride(MarshalRequiresMarkerList),
81
81
  identity=True,