Browse Source

Merge pull request #789 from unbrice/master

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.2
Erez Shinan 3 years ago
committed by GitHub
parent
commit
f628b7facd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lark-stubs/visitors.pyi

+ 3
- 3
lark-stubs/visitors.pyi View File

@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-


from typing import TypeVar, Tuple, List, Callable, Generic, Type
from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union
from abc import ABC from abc import ABC
from .tree import Tree from .tree import Tree


_T = TypeVar('_T') _T = TypeVar('_T')
_R = TypeVar('_R') _R = TypeVar('_R')
_FUNC = Callable[..., _T] _FUNC = Callable[..., _T]
_DECORATED = Union[_FUNC, type]


class Transformer(ABC, Generic[_T]): class Transformer(ABC, Generic[_T]):


@@ -76,7 +76,7 @@ def v_args(
inline: bool = False, inline: bool = False,
meta: bool = False, meta: bool = False,
tree: bool = False tree: bool = False
) -> Callable[[_FUNC], _FUNC]:
) -> Callable[[_DECORATED], _DECORATED]:
... ...






Loading…
Cancel
Save