mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Builtin types.
This commit is contained in:
parent
9b96133b7a
commit
ec040eb51f
1 changed files with 12 additions and 1 deletions
|
|
@ -1,6 +1,17 @@
|
|||
import io as _io
|
||||
from typing import TypeVar as _TypeVar
|
||||
|
||||
from . import base
|
||||
from . import fields
|
||||
|
||||
__all__ = (
|
||||
'base', 'fields'
|
||||
'base', 'fields',
|
||||
'InputFile', 'String', 'Integer', 'Float', 'Boolean'
|
||||
)
|
||||
|
||||
# Binding of builtin types
|
||||
InputFile = _TypeVar('InputFile', _io.BytesIO, _io.FileIO, str)
|
||||
String = _TypeVar('String', bound=str)
|
||||
Integer = _TypeVar('Integer', bound=int)
|
||||
Float = _TypeVar('Float', bound=float)
|
||||
Boolean = _TypeVar('Boolean', bound=bool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue