添加注册登录功能
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
# the MIT License: https://www.opensource.org/licenses/mit-license.php
|
||||
# mypy: allow-untyped-defs, allow-untyped-calls
|
||||
|
||||
"""High level utilities which build upon other modules here.
|
||||
|
||||
"""
|
||||
"""High level utilities which build upon other modules here."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections import deque
|
||||
@@ -480,7 +478,7 @@ def surface_selectables(clause):
|
||||
stack.append(elem.element)
|
||||
|
||||
|
||||
def surface_selectables_only(clause):
|
||||
def surface_selectables_only(clause: ClauseElement) -> Iterator[ClauseElement]:
|
||||
stack = [clause]
|
||||
while stack:
|
||||
elem = stack.pop()
|
||||
@@ -1173,7 +1171,7 @@ class ClauseAdapter(visitors.ReplacingExternalTraversal):
|
||||
# we are an alias of a table and we are not derived from an
|
||||
# alias of a table (which nonetheless may be the same table
|
||||
# as ours) so, same thing
|
||||
return col # type: ignore
|
||||
return col
|
||||
else:
|
||||
# other cases where we are a selectable and the element
|
||||
# is another join or selectable that contains a table which our
|
||||
|
||||
Reference in New Issue
Block a user