mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Bump mako from 1.3.2 to 1.3.3 (#2303)
* Bump mako from 1.3.2 to 1.3.3 Bumps [mako](https://github.com/sqlalchemy/mako) from 1.3.2 to 1.3.3. - [Release notes](https://github.com/sqlalchemy/mako/releases) - [Changelog](https://github.com/sqlalchemy/mako/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/mako/commits) --- updated-dependencies: - dependency-name: mako dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update mako==1.3.3 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
6a9e532805
commit
80984bd296
4 changed files with 41 additions and 9 deletions
|
@ -90,6 +90,26 @@ class FindIdentifiers(_ast_util.NodeVisitor):
|
|||
self._add_declared(node.name)
|
||||
self._visit_function(node, False)
|
||||
|
||||
def visit_ListComp(self, node):
|
||||
if self.in_function:
|
||||
if not isinstance(node.elt, _ast.Name):
|
||||
self.visit(node.elt)
|
||||
for comp in node.generators:
|
||||
self.visit(comp.iter)
|
||||
else:
|
||||
self.generic_visit(node)
|
||||
|
||||
visit_SetComp = visit_GeneratorExp = visit_ListComp
|
||||
|
||||
def visit_DictComp(self, node):
|
||||
if self.in_function:
|
||||
if not isinstance(node.key, _ast.Name):
|
||||
self.visit(node.elt)
|
||||
for comp in node.generators:
|
||||
self.visit(comp.iter)
|
||||
else:
|
||||
self.generic_visit(node)
|
||||
|
||||
def _expand_tuples(self, args):
|
||||
for arg in args:
|
||||
if isinstance(arg, _ast.Tuple):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue