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

Laurent Peuch cortex at worlddomination.be
Wed Jan 15 10:58:29 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 3077c65fe49c32965897db802b2cc80a4da3ecb5
# Parent  8f39cf0d186269c644b9d3ce53b9118bfb318372
# Available At https://hg.logilab.org/users/lpeuch/yams
#              hg pull https://hg.logilab.org/users/lpeuch/yams -r 3077c65fe49c
[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
@@ -370,7 +370,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