Thu, 08 Dec 2022 18:04:00 +0100
Regenerated the source documentation.
--- a/src/eric7/APIs/Python3/eric7.api Thu Dec 08 18:03:42 2022 +0100 +++ b/src/eric7/APIs/Python3/eric7.api Thu Dec 08 18:04:00 2022 +0100 @@ -3306,16 +3306,16 @@ eric7.PipInterface.pipdeptree.ReqPackage?1(obj, dist=None) eric7.PipInterface.pipdeptree.ReversedPackageDAG.reverse?4() eric7.PipInterface.pipdeptree._get_args?5() -eric7.PipInterface.pipdeptree.aux?4(node, parent=None, chain=None) -eric7.PipInterface.pipdeptree.aux?4(node, parent=None, indent=0, chain=None) +eric7.PipInterface.pipdeptree.aux?4(node, parent=None, cur_chain=None) +eric7.PipInterface.pipdeptree.aux?4(node, parent=None, indent=0, cur_chain=None) eric7.PipInterface.pipdeptree.conflicting_deps?4(tree) eric7.PipInterface.pipdeptree.cyclic_deps?4(tree) -eric7.PipInterface.pipdeptree.dump_graphviz?4(tree, output_format='dot', is_reverse=False) +eric7.PipInterface.pipdeptree.dump_graphviz?4(tree, output_format="dot", is_reverse=False) eric7.PipInterface.pipdeptree.flatten?7 eric7.PipInterface.pipdeptree.frozen_req_from_dist?4(dist) eric7.PipInterface.pipdeptree.get_installed_distributions?4(local_only=False, user_only=False) eric7.PipInterface.pipdeptree.get_parser?4() -eric7.PipInterface.pipdeptree.guess_version?4(pkg_key, default='?') +eric7.PipInterface.pipdeptree.guess_version?4(pkg_key, default="?") eric7.PipInterface.pipdeptree.handle_non_host_target?4(args) eric7.PipInterface.pipdeptree.main?4() eric7.PipInterface.pipdeptree.print_graphviz?4(dump_output) @@ -3326,11 +3326,11 @@ eric7.PipInterface.pipdeptree.render_text?4(tree, list_all=True, frozen=False) eric7.PipInterface.pipdeptree.sorted_tree?4(tree) eric7.PipInterface.piplicenses.CompatibleArgumentParser._verify_args?5(args: CustomNamespace) -eric7.PipInterface.piplicenses.CompatibleArgumentParser.parse_args?4(args: Optional[Sequence[Text]] = None, namespace: CustomNamespace = None) +eric7.PipInterface.piplicenses.CompatibleArgumentParser.parse_args?4(args: None | Sequence[str] = None, namespace: None | CustomNamespace = None, ) eric7.PipInterface.piplicenses.CustomHelpFormatter._expand_help?5(action: argparse.Action) eric7.PipInterface.piplicenses.CustomHelpFormatter._format_action?5(action: argparse.Action) -eric7.PipInterface.piplicenses.CustomHelpFormatter._split_lines?5(text: Text, width: int) -eric7.PipInterface.piplicenses.CustomHelpFormatter?1(prog: Text, indent_increment: int = 2, max_help_position: int = 24, width: Optional[int] = None) +eric7.PipInterface.piplicenses.CustomHelpFormatter._split_lines?5(text: str, width: int) +eric7.PipInterface.piplicenses.CustomHelpFormatter?1(prog: str, indent_increment: int = 2, max_help_position: int = 24, width: Optional[int] = None, ) eric7.PipInterface.piplicenses.DEFAULT_OUTPUT_FIELDS?7 eric7.PipInterface.piplicenses.FIELDS_TO_METADATA_KEYS?7 eric7.PipInterface.piplicenses.FIELD_NAMES?7 @@ -3346,23 +3346,25 @@ eric7.PipInterface.piplicenses.OrderArg.LICENSE?7 eric7.PipInterface.piplicenses.OrderArg.NAME?7 eric7.PipInterface.piplicenses.OrderArg.URL?7 +eric7.PipInterface.piplicenses.SUMMARY_FIELD_NAMES?7 eric7.PipInterface.piplicenses.SUMMARY_OUTPUT_FIELDS?7 eric7.PipInterface.piplicenses.SYSTEM_PACKAGES?7 -eric7.PipInterface.piplicenses.choices_from_enum?4(enum_cls: NoValueEnum) +eric7.PipInterface.piplicenses.choices_from_enum?4(enum_cls: Type[NoValueEnum]) eric7.PipInterface.piplicenses.create_licenses_list?4(args: "CustomNamespace", output_fields=DEFAULT_OUTPUT_FIELDS) eric7.PipInterface.piplicenses.create_output_string?4(args: "CustomNamespace") eric7.PipInterface.piplicenses.create_parser?4() eric7.PipInterface.piplicenses.create_summary_by_license_list?4(args: "CustomNamespace") eric7.PipInterface.piplicenses.create_summary_list?4(args: "CustomNamespace") eric7.PipInterface.piplicenses.enum_key_to_value?4(enum_key: Enum) -eric7.PipInterface.piplicenses.find_license_from_classifier?4(message) +eric7.PipInterface.piplicenses.filter_string?4(item: str) +eric7.PipInterface.piplicenses.find_license_from_classifier?4(classifiers: list[str]) eric7.PipInterface.piplicenses.get_installed_distributions?4(local_only=True, user_only=False) -eric7.PipInterface.piplicenses.get_output_fields?4(args: "CustomNamespace") -eric7.PipInterface.piplicenses.get_packages?4(args: "CustomNamespace") -eric7.PipInterface.piplicenses.get_pkg_included_file?4(pkg, file_names) +eric7.PipInterface.piplicenses.get_output_fields?4(args: CustomNamespace) +eric7.PipInterface.piplicenses.get_packages?4(args: CustomNamespace, ) +eric7.PipInterface.piplicenses.get_pkg_included_file?4(pkg, file_names_rgx: str) eric7.PipInterface.piplicenses.get_pkg_info?4(pkg) eric7.PipInterface.piplicenses.main?4() -eric7.PipInterface.piplicenses.select_license_by_source?4(from_source, license_classifier, license_meta) +eric7.PipInterface.piplicenses.select_license_by_source?4(from_source: FromArg, license_classifier: list[str], license_meta: str) eric7.PipInterface.piplicenses.value_to_enum_key?4(value: str) eric7.PluginManager.PluginDetailsDialog.PluginDetailsDialog.on_activeCheckBox_clicked?4() eric7.PluginManager.PluginDetailsDialog.PluginDetailsDialog.on_autoactivateCheckBox_clicked?4() @@ -3680,8 +3682,11 @@ eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.FUNCTION_NODES?7 eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.NodeWindowSize?7 eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor._loop?5(badNodeTypes) -eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.isAbcClass?4() +eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.emptyBody?4() +eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.isAbcClass?4(name="ABC") eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.isAbstractDecorator?4() +eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.isOverload?4() +eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.isStrOrEllipsis?4() eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.nodeStack?4() eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.visit?4(node) eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.BugBearVisitor.visit_Assert?4(node)
--- a/src/eric7/Documentation/Help/source.qhp Thu Dec 08 18:03:42 2022 +0100 +++ b/src/eric7/Documentation/Help/source.qhp Thu Dec 08 18:04:00 2022 +0100 @@ -2530,8 +2530,9 @@ <keyword name="BugBearVisitor.__checkForM521" id="BugBearVisitor.__checkForM521" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__checkForM521" /> <keyword name="BugBearVisitor.__checkForM522" id="BugBearVisitor.__checkForM522" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__checkForM522" /> <keyword name="BugBearVisitor.__checkForM523" id="BugBearVisitor.__checkForM523" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__checkForM523" /> - <keyword name="BugBearVisitor.__checkForM524" id="BugBearVisitor.__checkForM524" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__checkForM524" /> + <keyword name="BugBearVisitor.__checkForM524AndM527" id="BugBearVisitor.__checkForM524AndM527" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__checkForM524AndM527" /> <keyword name="BugBearVisitor.__checkForM525" id="BugBearVisitor.__checkForM525" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__checkForM525" /> + <keyword name="BugBearVisitor.__checkForM526" id="BugBearVisitor.__checkForM526" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__checkForM526" /> <keyword name="BugBearVisitor.__childrenInScope" id="BugBearVisitor.__childrenInScope" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__childrenInScope" /> <keyword name="BugBearVisitor.__composeCallPath" id="BugBearVisitor.__composeCallPath" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__composeCallPath" /> <keyword name="BugBearVisitor.__getAssignedNames" id="BugBearVisitor.__getAssignedNames" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__getAssignedNames" /> @@ -2540,8 +2541,11 @@ <keyword name="BugBearVisitor.__toNameStr" id="BugBearVisitor.__toNameStr" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__toNameStr" /> <keyword name="BugBearVisitor.__typesafeIssubclass" id="BugBearVisitor.__typesafeIssubclass" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.__typesafeIssubclass" /> <keyword name="BugBearVisitor._loop" id="BugBearVisitor._loop" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor._loop" /> + <keyword name="BugBearVisitor.emptyBody" id="BugBearVisitor.emptyBody" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.emptyBody" /> <keyword name="BugBearVisitor.isAbcClass" id="BugBearVisitor.isAbcClass" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.isAbcClass" /> <keyword name="BugBearVisitor.isAbstractDecorator" id="BugBearVisitor.isAbstractDecorator" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.isAbstractDecorator" /> + <keyword name="BugBearVisitor.isOverload" id="BugBearVisitor.isOverload" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.isOverload" /> + <keyword name="BugBearVisitor.isStrOrEllipsis" id="BugBearVisitor.isStrOrEllipsis" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.isStrOrEllipsis" /> <keyword name="BugBearVisitor.nodeStack" id="BugBearVisitor.nodeStack" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.nodeStack" /> <keyword name="BugBearVisitor.visit" id="BugBearVisitor.visit" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.visit" /> <keyword name="BugBearVisitor.visit_Assert" id="BugBearVisitor.visit_Assert" ref="eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html#BugBearVisitor.visit_Assert" /> @@ -18821,6 +18825,7 @@ <keyword name="filterAnsiSequences" id="filterAnsiSequences" ref="eric7.Utilities.__init__.html#filterAnsiSequences" /> <keyword name="filterCharsFromFilename" id="filterCharsFromFilename" ref="eric7.WebBrowser.Tools.WebBrowserTools.html#filterCharsFromFilename" /> <keyword name="filterMessage" id="filterMessage" ref="eric7.EricWidgets.EricErrorMessage.html#filterMessage" /> + <keyword name="filter_string" id="filter_string" ref="eric7.PipInterface.piplicenses.html#filter_string" /> <keyword name="findCyccloneDXComponent" id="findCyccloneDXComponent" ref="eric7.CycloneDXInterface.CycloneDXUtilities.html#findCyccloneDXComponent" /> <keyword name="findVolume" id="findVolume" ref="eric7.Utilities.__init__.html#findVolume" /> <keyword name="find_license_from_classifier" id="find_license_from_classifier" ref="eric7.PipInterface.piplicenses.html#find_license_from_classifier" />
--- a/src/eric7/Documentation/Source/eric7.PipInterface.pipdeptree.html Thu Dec 08 18:03:42 2022 +0100 +++ b/src/eric7/Documentation/Source/eric7.PipInterface.pipdeptree.html Thu Dec 08 18:04:00 2022 +0100 @@ -9,7 +9,7 @@ <h1>eric7.PipInterface.pipdeptree</h1> <p> -Copyright (c) 2015 Vineet Naik (naikvin@gmail.com) +Copyright (c) The pipdeptree developers </p> <p> Permission is hereby granted, free of charge, to any person obtaining @@ -141,7 +141,7 @@ </tr> <tr> <td><a href="#sorted_tree">sorted_tree</a></td> -<td>Sorts the dict representation of the tree</td> +<td>Sorts the dict representation of the tree.</td> </tr> </table> <hr /> @@ -150,13 +150,12 @@ <h2>DistPackage</h2> <p> -Wrapper class for pkg_resources.Distribution instances + Wrapper class for pkg_resources.Distribution instances </p> <p> - :param obj: pkg_resources.Distribution to wrap over - :param req: optional ReqPackage object to associate this - DistPackage with. This is useful for displaying the - tree in reverse + :param obj: pkg_resources.Distribution to wrap over + :param req: optional ReqPackage object to associate this DistPackage with. This is useful for displaying the tree + in reverse </p> <h3>Derived from</h3> Package @@ -184,7 +183,7 @@ </tr> <tr> <td><a href="#DistPackage.as_parent_of">as_parent_of</a></td> -<td>Return a DistPackage instance associated to a requirement</td> +<td>Return a DistPackage instance associated to a requirement.</td> </tr> <tr> <td><a href="#DistPackage.as_requirement">as_requirement</a></td> @@ -218,23 +217,17 @@ <b>as_parent_of</b>(<i>req</i>) <p> -Return a DistPackage instance associated to a requirement + Return a DistPackage instance associated to a requirement. This association is necessary for reversing the + PackageDAG. </p> <p> - This association is necessary for reversing the PackageDAG. -</p> -<p> - If `req` is None, and the `req` attribute of the current - instance is also None, then the same instance will be + If `req` is None, and the `req` attribute of the current instance is also None, then the same instance will be returned. </p> <p> :param ReqPackage req: the requirement to associate with :returns: DistPackage instance </p> -<p> - -</p> <a NAME="DistPackage.as_requirement" ID="DistPackage.as_requirement"></a> <h4>DistPackage.as_requirement</h4> <b>as_requirement</b>(<i></i>) @@ -257,17 +250,11 @@ <h2>Package</h2> <p> -Abstract class for wrappers around objects that pip returns. -</p> -<p> - This class needs to be subclassed with implementations for - `render_as_root` and `render_as_branch` methods. -</p> -<p> - + Abstract class for wrappers around objects that pip returns. This class needs to be subclassed with implementations + for `render_as_root` and `render_as_branch` methods. </p> <h3>Derived from</h3> -object +None <h3>Class Attributes</h3> <table> @@ -360,12 +347,11 @@ <h2>PackageDAG</h2> <p> -Representation of Package dependencies as directed acyclic graph - using a dict (Mapping) as the underlying datastructure. + Representation of Package dependencies as directed acyclic graph using a dict (Mapping) as the underlying + datastructure. </p> <p> - The nodes and their relationships (edges) are internally - stored using a map as follows, + The nodes and their relationships (edges) are internally stored using a map as follows, </p> <p> {a: [b, c], @@ -377,19 +363,14 @@ g: [e, f]} </p> <p> - Here, node `a` has 2 children nodes `b` and `c`. Consider edge - direction from `a` -> `b` and `a` -> `c` respectively. + Here, node `a` has 2 children nodes `b` and `c`. Consider edge direction from `a` -> `b` and `a` -> `c` + respectively. </p> <p> - A node is expected to be an instance of a subclass of - `Package`. The keys are must be of class `DistPackage` and each - item in values must be of class `ReqPackage`. (See also - ReversedPackageDAG where the key and value types are + A node is expected to be an instance of a subclass of `Package`. The keys are must be of class `DistPackage` and + each item in values must be of class `ReqPackage`. (See also ReversedPackageDAG where the key and value types are interchanged). </p> -<p> - -</p> <h3>Derived from</h3> Mapping <h3>Class Attributes</h3> @@ -432,7 +413,7 @@ </tr> <tr> <td><a href="#PackageDAG.get_children">get_children</a></td> -<td>Get child nodes for a node by it's key</td> +<td>Get child nodes for a node by its key</td> </tr> <tr> <td><a href="#PackageDAG.get_node_as_parent">get_node_as_parent</a></td> @@ -440,11 +421,11 @@ </tr> <tr> <td><a href="#PackageDAG.reverse">reverse</a></td> -<td>Reverse the DAG, or turn it upside-down</td> +<td>Reverse the DAG, or turn it upside-down.</td> </tr> <tr> <td><a href="#PackageDAG.sort">sort</a></td> -<td>Return sorted tree in which the underlying _obj dict is an OrderedDict, sorted alphabetically by the keys</td> +<td>Return sorted tree in which the underlying _obj dict is an dict, sorted alphabetically by the keys.</td> </tr> </table> <h3>Static Methods</h3> @@ -489,11 +470,10 @@ <b>filter</b>(<i>include, exclude</i>) <p> -Filters nodes in a graph by given parameters + Filters nodes in a graph by given parameters </p> <p> - If a node is included, then all it's children are also - included. + If a node is included, then all it's children are also included. </p> <p> :param set include: set of node keys to include (or None) @@ -501,86 +481,64 @@ :returns: filtered version of the graph :rtype: PackageDAG </p> -<p> - -</p> <a NAME="PackageDAG.get_children" ID="PackageDAG.get_children"></a> <h4>PackageDAG.get_children</h4> <b>get_children</b>(<i>node_key</i>) <p> -Get child nodes for a node by it's key + Get child nodes for a node by its key </p> <p> :param str node_key: key of the node to get children of :returns: list of child nodes :rtype: ReqPackage[] </p> -<p> - -</p> <a NAME="PackageDAG.get_node_as_parent" ID="PackageDAG.get_node_as_parent"></a> <h4>PackageDAG.get_node_as_parent</h4> <b>get_node_as_parent</b>(<i>node_key</i>) <p> -Get the node from the keys of the dict representing the DAG. + Get the node from the keys of the dict representing the DAG. </p> <p> - This method is useful if the dict representing the DAG - contains different kind of objects in keys and values. Use - this method to lookup a node obj as a parent (from the keys of - the dict) given a node key. + This method is useful if the dict representing the DAG contains different kind of objects in keys and values. + Use this method to look up a node obj as a parent (from the keys of the dict) given a node key. </p> <p> :param node_key: identifier corresponding to key attr of node obj :returns: node obj (as present in the keys of the dict) :rtype: Object </p> -<p> - -</p> <a NAME="PackageDAG.reverse" ID="PackageDAG.reverse"></a> <h4>PackageDAG.reverse</h4> <b>reverse</b>(<i></i>) <p> -Reverse the DAG, or turn it upside-down + Reverse the DAG, or turn it upside-down. </p> <p> - In other words, the directions of edges of the nodes in the - DAG will be reversed. + In other words, the directions of edges of the nodes in the DAG will be reversed. </p> <p> - Note that this function purely works on the nodes in the - graph. This implies that to perform a combination of filtering - and reversing, the order in which `filter` and `reverse` - methods should be applied is important. For eg. if reverse is - called on a filtered graph, then only the filtered nodes and - it's children will be considered when reversing. On the other - hand, if filter is called on reversed DAG, then the definition - of "child" nodes is as per the reversed DAG. + Note that this function purely works on the nodes in the graph. This implies that to perform a combination of + filtering and reversing, the order in which `filter` and `reverse` methods should be applied is important. For + e.g., if reverse is called on a filtered graph, then only the filtered nodes and it's children will be + considered when reversing. On the other hand, if filter is called on reversed DAG, then the definition of + "child" nodes is as per the reversed DAG. </p> <p> :returns: DAG in the reversed form :rtype: ReversedPackageDAG </p> -<p> - -</p> <a NAME="PackageDAG.sort" ID="PackageDAG.sort"></a> <h4>PackageDAG.sort</h4> <b>sort</b>(<i></i>) <p> -Return sorted tree in which the underlying _obj dict is an - OrderedDict, sorted alphabetically by the keys + Return sorted tree in which the underlying _obj dict is an dict, sorted alphabetically by the keys. </p> <p> - :returns: Instance of same class with OrderedDict -</p> -<p> - + :returns: Instance of same class with dict </p> <div align="right"><a href="#top">Up</a></div> <hr /> @@ -589,12 +547,11 @@ <h2>ReqPackage</h2> <p> -Wrapper class for Requirements instance + Wrapper class for Requirements instance </p> <p> - :param obj: The `Requirements` instance to wrap over - :param dist: optional `pkg_resources.Distribution` instance for - this requirement + :param obj: The `Requirements` instance to wrap over + :param dist: optional `pkg_resources.Distribution` instance for this requirement </p> <h3>Derived from</h3> Package @@ -693,21 +650,14 @@ <h2>ReversedPackageDAG</h2> <p> -Representation of Package dependencies in the reverse - order. +Representation of Package dependencies in the reverse order. </p> <p> - Similar to it's super class `PackageDAG`, the underlying - datastructure is a dict, but here the keys are expected to be of - type `ReqPackage` and each item in the values of type - `DistPackage`. + Similar to it's super class `PackageDAG`, the underlying datastructure is a dict, but here the keys are expected to + be of type `ReqPackage` and each item in the values of type `DistPackage`. </p> <p> - Typically, this object will be obtained by calling - `PackageDAG.reverse`. -</p> -<p> - + Typically, this object will be obtained by calling `PackageDAG.reverse`. </p> <h3>Derived from</h3> PackageDAG @@ -741,15 +691,12 @@ <b>reverse</b>(<i></i>) <p> -Reverse the already reversed DAG to get the PackageDAG again + Reverse the already reversed DAG to get the PackageDAG again </p> <p> :returns: reverse of the reversed DAG :rtype: PackageDAG </p> -<p> - -</p> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> @@ -762,14 +709,14 @@ <hr /> <a NAME="aux" ID="aux"></a> <h2>aux</h2> -<b>aux</b>(<i>node, parent=None, indent=0, chain=None</i>) +<b>aux</b>(<i>node, parent=None, indent=0, cur_chain=None</i>) <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="aux_1" ID="aux_1"></a> <h2>aux</h2> -<b>aux</b>(<i>node, parent=None, chain=None</i>) +<b>aux</b>(<i>node, parent=None, cur_chain=None</i>) <div align="right"><a href="#top">Up</a></div> <hr /> @@ -779,8 +726,7 @@ <b>conflicting_deps</b>(<i>tree</i>) <p> -Returns dependencies which are not present or conflict with the - requirements of other packages. + Returns dependencies which are not present or conflict with the requirements of other packages. </p> <p> e.g. will warn if pkg1 requires pkg2==2.0 and pkg2==1.0 is installed @@ -790,9 +736,6 @@ :returns: dict of DistPackage -> list of unsatisfied/unknown ReqPackage :rtype: dict </p> -<p> - -</p> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> @@ -801,22 +744,19 @@ <b>cyclic_deps</b>(<i>tree</i>) <p> -Return cyclic dependencies as list of tuples + Return cyclic dependencies as list of tuples </p> <p> - :param PackageDAG pkgs: package tree/dag + :param PackageDAG tree: package tree/dag :returns: list of tuples representing cyclic dependencies :rtype: list </p> -<p> - -</p> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="dump_graphviz" ID="dump_graphviz"></a> <h2>dump_graphviz</h2> -<b>dump_graphviz</b>(<i>tree, output_format='dot', is_reverse=False</i>) +<b>dump_graphviz</b>(<i>tree, output_format="dot", is_reverse=False</i>) <p> Output dependency graph as one of the supported GraphViz output formats. @@ -824,6 +764,7 @@ <p> :param dict tree: dependency graph :param string output_format: output format + :param bool is_reverse: reverse or not :returns: representation of tree in the specified output format :rtype: str or binary representation depending on the output format </p> @@ -856,7 +797,7 @@ <hr /> <a NAME="guess_version" ID="guess_version"></a> <h2>guess_version</h2> -<b>guess_version</b>(<i>pkg_key, default='?'</i>) +<b>guess_version</b>(<i>pkg_key, default="?"</i>) <p> Guess the version of a pkg when pip doesn't provide it @@ -867,9 +808,6 @@ :returns: version :rtype: string </p> -<p> - -</p> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> @@ -892,7 +830,7 @@ <b>print_graphviz</b>(<i>dump_output</i>) <p> -Dump the data generated by GraphViz to stdout. + Dump the data generated by GraphViz to stdout. </p> <p> :param dump_output: The output from dump_graphviz @@ -919,7 +857,7 @@ <b>render_json</b>(<i>tree, indent</i>) <p> -Converts the tree into a flat json representation. + Converts the tree into a flat json representation. </p> <p> The json repr will be a list of hashes, each hash having 2 fields: @@ -932,9 +870,6 @@ :returns: json representation of the tree :rtype: str </p> -<p> - -</p> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> @@ -943,10 +878,12 @@ <b>render_json_tree</b>(<i>tree, indent</i>) <p> -Converts the tree into a nested json representation. + Converts the tree into a nested json representation. </p> <p> The json repr will be a list of hashes, each hash having the following fields: +</p> +<p> - package_name - key - required_version @@ -959,9 +896,6 @@ :returns: json representation of the tree :rtype: str </p> -<p> - -</p> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> @@ -974,11 +908,8 @@ </p> <p> :param dict tree: the package tree - :param bool list_all: whether to list all the pgks at the root - level or only those that are the - sub-dependencies - :param bool frozen: whether or not show the names of the pkgs in - the output that's favourable to pip --freeze + :param bool list_all: whether to list all the pgks at the root level or only those that are the sub-dependencies + :param bool frozen: show the names of the pkgs in the output that's favourable to pip --freeze :returns: None </p> <p> @@ -992,20 +923,13 @@ <b>sorted_tree</b>(<i>tree</i>) <p> -Sorts the dict representation of the tree -</p> -<p> - The root packages as well as the intermediate packages are sorted - in the alphabetical order of the package names. + Sorts the dict representation of the tree. The root packages as well as the intermediate packages are sorted in the + alphabetical order of the package names. </p> <p> - :param dict tree: the pkg dependency tree obtained by calling - `construct_tree` function + :param dict tree: the pkg dependency tree obtained by calling `construct_tree` function :returns: sorted tree - :rtype: collections.OrderedDict -</p> -<p> - + :rtype: dict </p> <div align="right"><a href="#top">Up</a></div> <hr />
--- a/src/eric7/Documentation/Source/eric7.PipInterface.piplicenses.html Thu Dec 08 18:03:42 2022 +0100 +++ b/src/eric7/Documentation/Source/eric7.PipInterface.piplicenses.html Thu Dec 08 18:04:00 2022 +0100 @@ -41,7 +41,7 @@ <h3>Global Attributes</h3> <table> -<tr><td>DEFAULT_OUTPUT_FIELDS</td></tr><tr><td>FIELDS_TO_METADATA_KEYS</td></tr><tr><td>FIELD_NAMES</td></tr><tr><td>LICENSE_UNKNOWN</td></tr><tr><td>MAP_DEST_TO_ENUM</td></tr><tr><td>METADATA_KEYS</td></tr><tr><td>SUMMARY_OUTPUT_FIELDS</td></tr><tr><td>SYSTEM_PACKAGES</td></tr><tr><td>__author__</td></tr><tr><td>__license__</td></tr><tr><td>__pkgname__</td></tr><tr><td>__summary__</td></tr><tr><td>__url__</td></tr><tr><td>__version__</td></tr> +<tr><td>DEFAULT_OUTPUT_FIELDS</td></tr><tr><td>FIELDS_TO_METADATA_KEYS</td></tr><tr><td>FIELD_NAMES</td></tr><tr><td>LICENSE_UNKNOWN</td></tr><tr><td>MAP_DEST_TO_ENUM</td></tr><tr><td>METADATA_KEYS</td></tr><tr><td>SUMMARY_FIELD_NAMES</td></tr><tr><td>SUMMARY_OUTPUT_FIELDS</td></tr><tr><td>SYSTEM_PACKAGES</td></tr><tr><td>__author__</td></tr><tr><td>__license__</td></tr><tr><td>__pkgname__</td></tr><tr><td>__summary__</td></tr><tr><td>__url__</td></tr><tr><td>__version__</td></tr> </table> <h3>Classes</h3> @@ -109,12 +109,16 @@ <td></td> </tr> <tr> +<td><a href="#filter_string">filter_string</a></td> +<td></td> +</tr> +<tr> <td><a href="#find_license_from_classifier">find_license_from_classifier</a></td> <td></td> </tr> <tr> <td><a href="#get_installed_distributions">get_installed_distributions</a></td> -<td></td> +<td>Function to get the installed packages via pip.</td> </tr> <tr> <td><a href="#get_output_fields">get_output_fields</a></td> @@ -187,7 +191,7 @@ <a NAME="CompatibleArgumentParser.parse_args" ID="CompatibleArgumentParser.parse_args"></a> <h4>CompatibleArgumentParser.parse_args</h4> -<b>parse_args</b>(<i>args: Optional[Sequence[Text]] = None, namespace: CustomNamespace = None</i>) +<b>parse_args</b>(<i>args: None | Sequence[str] = None, namespace: None | CustomNamespace = None, </i>) <div align="right"><a href="#top">Up</a></div> <hr /> @@ -236,7 +240,7 @@ <a NAME="CustomHelpFormatter.__init__" ID="CustomHelpFormatter.__init__"></a> <h4>CustomHelpFormatter (Constructor)</h4> -<b>CustomHelpFormatter</b>(<i>prog: Text, indent_increment: int = 2, max_help_position: int = 24, width: Optional[int] = None</i>) +<b>CustomHelpFormatter</b>(<i>prog: str, indent_increment: int = 2, max_help_position: int = 24, width: Optional[int] = None, </i>) <a NAME="CustomHelpFormatter._expand_help" ID="CustomHelpFormatter._expand_help"></a> <h4>CustomHelpFormatter._expand_help</h4> @@ -248,7 +252,7 @@ <a NAME="CustomHelpFormatter._split_lines" ID="CustomHelpFormatter._split_lines"></a> <h4>CustomHelpFormatter._split_lines</h4> -<b>_split_lines</b>(<i>text: Text, width: int</i>) +<b>_split_lines</b>(<i>text: str, width: int</i>) <div align="right"><a href="#top">Up</a></div> <hr /> @@ -409,14 +413,14 @@ <a NAME="SelectAction.__call__" ID="SelectAction.__call__"></a> <h4>SelectAction.__call__</h4> -<b>__call__</b>(<i>parser: argparse.ArgumentParser, namespace: argparse.Namespace, values: Text, option_string: Optional[Text] = None, </i>) +<b>__call__</b>(<i>parser: argparse.ArgumentParser, namespace: argparse.Namespace, values: str, option_string: Optional[str] = None, </i>) <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="choices_from_enum" ID="choices_from_enum"></a> <h2>choices_from_enum</h2> -<b>choices_from_enum</b>(<i>enum_cls: NoValueEnum</i>) +<b>choices_from_enum</b>(<i>enum_cls: Type[NoValueEnum]</i>) <div align="right"><a href="#top">Up</a></div> <hr /> @@ -463,9 +467,16 @@ <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> +<a NAME="filter_string" ID="filter_string"></a> +<h2>filter_string</h2> +<b>filter_string</b>(<i>item: str</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /> +<hr /> <a NAME="find_license_from_classifier" ID="find_license_from_classifier"></a> <h2>find_license_from_classifier</h2> -<b>find_license_from_classifier</b>(<i>message</i>) +<b>find_license_from_classifier</b>(<i>classifiers: list[str]</i>) <div align="right"><a href="#top">Up</a></div> <hr /> @@ -474,26 +485,56 @@ <h2>get_installed_distributions</h2> <b>get_installed_distributions</b>(<i>local_only=True, user_only=False</i>) +<p> + Function to get the installed packages via pip. +</p> +<p> + Note: importlib_metadata.distributions() does not respect + 'local_only' and 'user_only' keyword parameters. +</p> +<dl> + +<dt><i>local_only</i> (TYPE (optional))</dt> +<dd> +DESCRIPTION (defaults to True) +</dd> +<dt><i>user_only</i> (TYPE (optional))</dt> +<dd> +DESCRIPTION (defaults to False) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +DESCRIPTION +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +TYPE +</dd> +</dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="get_output_fields" ID="get_output_fields"></a> <h2>get_output_fields</h2> -<b>get_output_fields</b>(<i>args: "CustomNamespace"</i>) +<b>get_output_fields</b>(<i>args: CustomNamespace</i>) <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="get_packages" ID="get_packages"></a> <h2>get_packages</h2> -<b>get_packages</b>(<i>args: "CustomNamespace"</i>) +<b>get_packages</b>(<i>args: CustomNamespace, </i>) <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="get_pkg_included_file" ID="get_pkg_included_file"></a> <h2>get_pkg_included_file</h2> -<b>get_pkg_included_file</b>(<i>pkg, file_names</i>) +<b>get_pkg_included_file</b>(<i>pkg, file_names_rgx: str</i>) <p> Attempt to find the package's included file on disk and return the @@ -518,7 +559,7 @@ <hr /> <a NAME="select_license_by_source" ID="select_license_by_source"></a> <h2>select_license_by_source</h2> -<b>select_license_by_source</b>(<i>from_source, license_classifier, license_meta</i>) +<b>select_license_by_source</b>(<i>from_source: FromArg, license_classifier: list[str], license_meta: str</i>) <div align="right"><a href="#top">Up</a></div> <hr />
--- a/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html Thu Dec 08 18:03:42 2022 +0100 +++ b/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Miscellaneous.MiscellaneousChecker.html Thu Dec 08 18:04:00 2022 +0100 @@ -143,7 +143,7 @@ <td>Private method to check that functions (including lambdas) do not use loop variables.</td> </tr> <tr> -<td><a href="#BugBearVisitor.__checkForM524">__checkForM524</a></td> +<td><a href="#BugBearVisitor.__checkForM524AndM527">__checkForM524AndM527</a></td> <td>Private method to check for inheritance from abstract classes in abc and lack of any methods decorated with abstract*.</td> </tr> <tr> @@ -151,6 +151,10 @@ <td>Private method to check for exceptions being handled multiple times.</td> </tr> <tr> +<td><a href="#BugBearVisitor.__checkForM526">__checkForM526</a></td> +<td>Private method to check for Star-arg unpacking after keyword argument.</td> +</tr> +<tr> <td><a href="#BugBearVisitor.__childrenInScope">__childrenInScope</a></td> <td>Private method to get all child nodes in the given scope.</td> </tr> @@ -183,6 +187,10 @@ <td></td> </tr> <tr> +<td><a href="#BugBearVisitor.emptyBody">emptyBody</a></td> +<td></td> +</tr> +<tr> <td><a href="#BugBearVisitor.isAbcClass">isAbcClass</a></td> <td></td> </tr> @@ -191,6 +199,14 @@ <td></td> </tr> <tr> +<td><a href="#BugBearVisitor.isOverload">isOverload</a></td> +<td></td> +</tr> +<tr> +<td><a href="#BugBearVisitor.isStrOrEllipsis">isStrOrEllipsis</a></td> +<td></td> +</tr> +<tr> <td><a href="#BugBearVisitor.nodeStack">nodeStack</a></td> <td>Public method to get a reference to the most recent node stack.</td> </tr> @@ -459,9 +475,9 @@ or ast.GeneratorExp </dd> </dl> -<a NAME="BugBearVisitor.__checkForM524" ID="BugBearVisitor.__checkForM524"></a> -<h4>BugBearVisitor.__checkForM524</h4> -<b>__checkForM524</b>(<i>node</i>) +<a NAME="BugBearVisitor.__checkForM524AndM527" ID="BugBearVisitor.__checkForM524AndM527"></a> +<h4>BugBearVisitor.__checkForM524AndM527</h4> +<b>__checkForM524AndM527</b>(<i>node</i>) <p> Private method to check for inheritance from abstract classes in abc and lack of @@ -488,6 +504,20 @@ reference to the node to be processed </dd> </dl> +<a NAME="BugBearVisitor.__checkForM526" ID="BugBearVisitor.__checkForM526"></a> +<h4>BugBearVisitor.__checkForM526</h4> +<b>__checkForM526</b>(<i>node</i>) + +<p> + Private method to check for Star-arg unpacking after keyword argument. +</p> +<dl> + +<dt><i>node</i> (ast.Call)</dt> +<dd> +reference to the node to be processed +</dd> +</dl> <a NAME="BugBearVisitor.__childrenInScope" ID="BugBearVisitor.__childrenInScope"></a> <h4>BugBearVisitor.__childrenInScope</h4> <b>__childrenInScope</b>(<i>node</i>) @@ -685,14 +715,26 @@ <h4>BugBearVisitor._loop</h4> <b>_loop</b>(<i>badNodeTypes</i>) +<a NAME="BugBearVisitor.emptyBody" ID="BugBearVisitor.emptyBody"></a> +<h4>BugBearVisitor.emptyBody</h4> +<b>emptyBody</b>(<i></i>) + <a NAME="BugBearVisitor.isAbcClass" ID="BugBearVisitor.isAbcClass"></a> <h4>BugBearVisitor.isAbcClass</h4> -<b>isAbcClass</b>(<i></i>) +<b>isAbcClass</b>(<i>name="ABC"</i>) <a NAME="BugBearVisitor.isAbstractDecorator" ID="BugBearVisitor.isAbstractDecorator"></a> <h4>BugBearVisitor.isAbstractDecorator</h4> <b>isAbstractDecorator</b>(<i></i>) +<a NAME="BugBearVisitor.isOverload" ID="BugBearVisitor.isOverload"></a> +<h4>BugBearVisitor.isOverload</h4> +<b>isOverload</b>(<i></i>) + +<a NAME="BugBearVisitor.isStrOrEllipsis" ID="BugBearVisitor.isStrOrEllipsis"></a> +<h4>BugBearVisitor.isStrOrEllipsis</h4> +<b>isStrOrEllipsis</b>(<i></i>) + <a NAME="BugBearVisitor.nodeStack" ID="BugBearVisitor.nodeStack"></a> <h4>BugBearVisitor.nodeStack</h4> <b>nodeStack</b>(<i></i>)
--- a/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.pycodestyle.html Thu Dec 08 18:03:42 2022 +0100 +++ b/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.pycodestyle.html Thu Dec 08 18:04:00 2022 +0100 @@ -999,15 +999,20 @@ </p> <p> Variables can be bound in several other contexts, including class - and function definitions, 'global' and 'nonlocal' statements, - exception handlers, and 'with' and 'for' statements. + and function definitions, lambda functions, 'global' and 'nonlocal' + statements, exception handlers, and 'with' and 'for' statements. In addition, we have a special handling for function parameters. </p> <p> Okay: except AttributeError as o: Okay: with lock as L: Okay: foo(l=12) + Okay: foo(l=I) Okay: for a in foo(l=12): + Okay: lambda arg: arg * l + Okay: lambda a=l[I:5]: None + Okay: lambda x=a.I: None + Okay: if l >= 12: E741: except AttributeError as O: E741: with lock as l: E741: global I @@ -1016,6 +1021,11 @@ E741: def foo(l=12): E741: l = foo(l=12) E741: for l in range(10): + E741: [l for l in lines if l] + E741: lambda l: None + E741: lambda a=x[1:5], l: None + E741: lambda **l: + E741: def f(**l): E742: class I(object): E743: def l(x): </p> @@ -1500,6 +1510,7 @@ <p> Okay: [a, b] Okay: (3,) + Okay: a[3,] = 1 Okay: a[1:4] Okay: a[:4] Okay: a[1:]
--- a/src/eric7/Documentation/Source/index-eric7.PipInterface.html Thu Dec 08 18:03:42 2022 +0100 +++ b/src/eric7/Documentation/Source/index-eric7.PipInterface.html Thu Dec 08 18:04:00 2022 +0100 @@ -53,7 +53,7 @@ </tr> <tr> <td><a href="eric7.PipInterface.pipdeptree.html">pipdeptree</a></td> -<td>Copyright (c) 2015 Vineet Naik (naikvin@gmail.com)</td> +<td>Copyright (c) The pipdeptree developers</td> </tr> <tr> <td><a href="eric7.PipInterface.piplicenses.html">piplicenses</a></td>