Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Simplify passing the arguments to OrderedDict in lexer #599

Description

@plamut

Token definitions in the custom parser for bigquery cell magic are passed as a list of (key, value) pairs, which results in extra two levels of indentation after formatting and additional noise (parentheses, quotes...).

Since we don't support Python 3.5 and below anymore, we can define the tokens as kwargs to OrderedDict. The kwargs ordered in Python 3.6+ is preserved (PEP 468).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions