8000 Add stubs for `chevron` package by faresbakhit · Pull Request #7139 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Add stubs for chevron package #7139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 5, 2022
Merged
Prev Previous commit
Next Next commit
Add missing return types to
  • Loading branch information
Fares Ahmed committed Feb 5, 2022
commit 4a3c95ee0086201135b6f95794e1dd7bcb80f151
7 changes: 5 additions & 2 deletions stubs/chevron/chevron/tokenizer.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from typing import Iterator


class ChevronError(SyntaxError): ...

def grab_literal(template: str, l_del: str | None) -> tuple[str, str]: ... # undocumented
def l_sa_check(template: str, literal: str, is_standalone: bool) -> bool | None: ... # undocumented
def r_sa_check(template: str, tag_type: str, is_standalone: bool) -> bool: ... # undocumented
def parse_tag(template: str, l_del: str | None, r_del: str | None): ... # undocumented
def tokenize(template: str, def_ldel: str | None = ..., def_rdel: str | None = ...): ... # undocumented
def parse_tag(template: str, l_del: str | None, r_del: str | None) -> tuple[tuple[str, str], str]: ... # undocumented
def tokenize(template: str, def_ldel: str | None = ..., def_rdel: str | None = ...) -> Iterator[tuple[str, str]]: ... # undocumented
0