Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Querybuilder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pydisk
Querybuilder
Commits
7b51f42c
Commit
7b51f42c
authored
3 years ago
by
Bruno Guillon
Browse files
Options
Downloads
Patches
Plain Diff
types subdialect bugs fixed
parent
94cf74b2
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
BUGS.md
+0
-4
0 additions, 4 deletions
BUGS.md
querybuilder/dialect.py
+1
-1
1 addition, 1 deletion
querybuilder/dialect.py
querybuilder/tools.py
+3
-1
3 additions, 1 deletion
querybuilder/tools.py
with
4 additions
and
6 deletions
BUGS.md
+
0
−
4
View file @
7b51f42c
Known bugs
Known bugs
==========
==========
+
in
`qb.sql.types`
+
autocompletion is not working
+
`_repr_pretty`
is not working
+
`dir`
is not working
This diff is collapsed.
Click to expand it.
querybuilder/dialect.py
+
1
−
1
View file @
7b51f42c
...
@@ -255,7 +255,7 @@ class Dialect(qbtools.AttrDict):
...
@@ -255,7 +255,7 @@ class Dialect(qbtools.AttrDict):
def
__repr__
(
self
):
def
__repr__
(
self
):
return
f
"
{
type
(
self
).
__name__
}
.dialects[
{
self
.
fullname
}
]
"
return
f
"
{
type
(
self
).
__name__
}
.dialects[
{
self
.
fullname
}
]
"
def
_pretty_repr_
(
self
):
def
_pretty_repr_
(
self
):
return
f
"
{
type
(
self
).
__name__
}
(
{
self
.
fullname
}
)〈
{
'
,
'
.
join
(
self
)
}
〉
"
return
f
"
{
type
(
self
).
__name__
}
(
{
self
.
fullname
}
)〈
{
'
,
'
.
join
(
map
(
str
,
self
)
)
}
〉
"
def
_repr_pretty_
(
self
,
printer
,
cycle
):
def
_repr_pretty_
(
self
,
printer
,
cycle
):
printer
.
text
(
self
.
_pretty_repr_
())
printer
.
text
(
self
.
_pretty_repr_
())
def
__iter__
(
self
):
def
__iter__
(
self
):
...
...
This diff is collapsed.
Click to expand it.
querybuilder/tools.py
+
3
−
1
View file @
7b51f42c
...
@@ -55,7 +55,9 @@ class AttrDict(collections.abc.MutableMapping):
...
@@ -55,7 +55,9 @@ class AttrDict(collections.abc.MutableMapping):
else
:
else
:
super
().
__setattr__
(
attr
,
v
)
super
().
__setattr__
(
attr
,
v
)
def
__dir__
(
self
):
def
__dir__
(
self
):
return
self
.
proxy_dict
.
keys
()
return
frozenset
(
self
.
_reserved_names
).
union
(
k
for
k
in
self
.
proxy_dict
.
keys
()
if
isinstance
(
k
,
str
)
and
k
.
isidentifier
()
)
#MutableMapping method
#MutableMapping method
def
__getitem__
(
self
,
k
):
def
__getitem__
(
self
,
k
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment