o $a@sdZddlZddlmZddlmZddlmZmZm Z m Z Gddde Z Gdd d eZ Gd d d eZ Gd d d e ZGdddeZGdddeZGdddeZdS)z sphinx.ext.autodoc.deprecated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The deprecated Documenters for autodoc. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. N)Any)RemovedInSphinx50Warning)AttributeDocumenterDataDocumenterFunctionDocumenterMethodDocumenterc.eZdZdZdededdffdd ZZS) SingledispatchFunctionDocumenterz Used to be a specialized Documenter subclass for singledispatch'ed functions. Retained for backwards compatibility, now does the same as the FunctionDocumenter argskwargsreturnNc.tjd|jjtddtj|i|dSNz%s is deprecated.) stacklevelwarningswarn __class____name__rsuper__init__selfr r r?/usr/lib/python3/dist-packages/sphinx/ext/autodoc/deprecated.pyrz)SingledispatchFunctionDocumenter.__init__r __module__ __qualname____doc__rr __classcell__rrrrr "r c>eZdZdZdZdZdZdZdededd ffd d Z Z S) DataDeclarationDocumenterz Specialized Documenter subclass for data that cannot be imported because they are declared without initial value (refs: PEP-526). datadecldata< r r r Ncr rrrrrrr,rz"DataDeclarationDocumenter.__init__ rrr r!objtype directivetype member_orderpriorityrrr"rrrrr% "r%c@eZdZdZdZdZejdZdededdffd d Z Z S) TypeVarDocumenterz7 Specialized Documenter subclass for TypeVars. typevarr'r r r Ncr rrrrrrr;rzTypeVarDocumenter.__init__ rrr r!r+r,rr.rrr"rrrrr12  "r1cr)SingledispatchMethodDocumenterz Used to be a specialized Documenter subclass for singledispatch'ed methods. Retained for backwards compatibility, now does the same as the MethodDocumenter r r r Ncr rrrrrrrHrz'SingledispatchMethodDocumenter.__init__rrrrrr6Ar#r6cr$) InstanceAttributeDocumenterz Specialized Documenter subclass for attributes that cannot be imported because they are instance attributes (e.g. assigned in __init__). instanceattribute attributer(r)r r r Ncr rrrrrrrZrz$InstanceAttributeDocumenter.__init__r*rrrrr7Nr/r7cr$) SlotsAttributeDocumenterz~ Specialized Documenter subclass for attributes that cannot be imported because they are attributes in __slots__. slotsattributer9r(r)r r r Ncr rrrrrrrlrz!SlotsAttributeDocumenter.__init__r*rrrrr:`r/r:cr0) GenericAliasDocumenterz= Specialized Documenter subclass for GenericAliases. genericaliasr'r3r r r Ncr rrrrrrr{rzGenericAliasDocumenter.__init__r4rrrrr<rr5r<)r!rtypingrsphinx.deprecationrsphinx.ext.autodocrrrrr r%r1r6r7r:r<rrrrs