[PATCH 6 of 9 yams] [refactoring] de-kwargs RichString for IDE and typing

Laurent Peuch cortex at worlddomination.be
Tue Jan 14 14:18:21 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 22a132b125a363cf73a9d8434671cb7c3efdfdc6
# Parent  36e7d7d974d291c5e6855d273421db9183ea877a
# Available At https://hg.logilab.org/users/lpeuch/yams
#              hg pull https://hg.logilab.org/users/lpeuch/yams -r 22a132b125a3
[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
@@ -359,7 +359,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