[PATCH 08 of 15 yams V3] [refactoring] de-kwargs RichString for IDE and typing

Laurent Peuch cortex at worlddomination.be
Wed Jan 15 20:59:08 CET 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1578663877 -3600
#      Fri Jan 10 14:44:37 2020 +0100
# Node ID 12faa3344fd71074ecd45b0a1e3c1737cc8abaf0
# Parent  fd0474e35c114383a8d659af2758a4eb1639701d
# Available At https://hg.logilab.org/users/lpeuch/yams
#              hg pull https://hg.logilab.org/users/lpeuch/yams -r 12faa3344fd7
[refactoring] de-kwargs RichString for IDE and typing

diff --git a/yams/buildobjs.py b/yams/buildobjs.py
--- a/yams/buildobjs.py
+++ b/yams/buildobjs.py
@@ -369,7 +369,8 @@ class Interval(AbstractTypedAttribute):
 
 
 # provides a RichString factory for convenience
-def RichString(default_format='text/plain', format_constraints=None, **kwargs):
+def RichString(default_format='text/plain', format_constraints=None, required=False, maxsize=None,
+               formula=MARKER, vocabulary=None, unique=None, override=False, **kwargs):
     """RichString is a convenience attribute type for attribute containing text
     in a format that should be specified in another attribute.
 



More information about the cubicweb-devel mailing list