Move routes stubs to @python2 directory (#5637)

* Move routes stubs to @python2 directory

* Ignore Python-2-only stubs for stubtest

* Use standard idiom for re-exporting items

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Sebastian Rittau
2021-06-18 16:05:23 +02:00
committed by GitHub
parent 5a256a0c70
commit bc2ec748f6
8 changed files with 9 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
from . import mapper, util
from .mapper import Mapper as Mapper
from .util import URLGenerator as URLGenerator, redirect_to as redirect_to, url_for as url_for
class _RequestConfig:
def __getattr__(self, name): ...
@@ -7,8 +8,3 @@ class _RequestConfig:
def load_wsgi_environ(self, environ): ...
def request_config(original=...): ...
Mapper = mapper.Mapper
redirect_to = util.redirect_to
url_for = util.url_for
URLGenerator = util.URLGenerator

View File

@@ -1,3 +1 @@
version = "0.1"
python2 = true
python3 = false