8000 Hide class-level QB attributes from model instances · Issue #652 · geldata/gel-python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Hide class-level QB attributes from model instances #652
Closed
@1st1

Description

@1st1

default.TVShow(title="cython").update() is a thing now and it's extremely confusing (I was just debugging this being utterly confused).

I think we need to have a decorator for QB codegen that would wrap all methods (update(), filter(), limit(), etc.) into a descriptor that would only allow access to them at a class level.

Ideally also only show those attributes at a class level in code completion / type checker. But at the very least, the runtime should fail.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0