Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
victorteokw committed Jan 30, 2024
1 parent 2e2a548 commit 8990b8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from .teo import App, Namespace, Model, Field, Relation, Property, Enum, EnumMember, Response, Request, ReadOnlyHeaderMap, ReadWriteHeaderMap, HandlerMatch, HandlerGroup, RequestCtx, ObjectId, Range, OptionVariant, EnumVariant, File, Pipeline
from typing import TypeVar, Union
from signal import signal, SIGINT
from sys import exit

T = TypeVar('T')

Enumerable = Union[T, list[T]]

signal(SIGINT, lambda _, __: exit(0))
5 changes: 5 additions & 0 deletions teo/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
"""This module contains classes and variables for Teo web framework."""
from __future__ import annotations
from typing import TypeVar, Union

T = TypeVar('T')

Enumerable = Union[T, list[T]]

class App:

Expand Down

0 comments on commit 8990b8c

Please sign in to comment.