Skip to content

Commit

Permalink
remove unused backup code
Browse files Browse the repository at this point in the history
  • Loading branch information
victorteokw committed Feb 1, 2024
1 parent 981311a commit 63ddd31
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 79 deletions.
71 changes: 0 additions & 71 deletions src/app/backup.rs

This file was deleted.

16 changes: 9 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use crate::object::value::File;
use crate::object::value::EnumVariant;
use crate::object::value::Range;
use crate::object::pipeline::Pipeline;
use crate::object::interface_enum_variant::InterfaceEnumVariant;

#[pymodule]
fn teo(py: Python, m: &PyModule) -> PyResult<()> {
Expand Down Expand Up @@ -66,23 +67,24 @@ def teo_wrap_async(callable):
m.add_class::<App>()?;
m.add_class::<Namespace>()?;
m.add_class::<HandlerGroup>()?;
m.add_class::<Request>()?;
m.add_class::<Response>()?;
m.add_class::<ReadOnlyHeaderMap>()?;
m.add_class::<ReadWriteHeaderMap>()?;
m.add_class::<Enum>()?;
m.add_class::<EnumMember>()?;
m.add_class::<Model>()?;
m.add_class::<Field>()?;
m.add_class::<Relation>()?;
m.add_class::<Property>()?;
m.add_class::<Enum>()?;
m.add_class::<EnumMember>()?;
m.add_class::<Response>()?;
m.add_class::<Request>()?;
m.add_class::<ReadOnlyHeaderMap>()?;
m.add_class::<ReadWriteHeaderMap>()?;
m.add_class::<HandlerMatch>()?;
m.add_class::<RequestCtx>()?;
m.add_class::<ObjectId>()?;
m.add_class::<File>()?;
m.add_class::<Range>()?;
m.add_class::<OptionVariant>()?;
m.add_class::<EnumVariant>()?;
m.add_class::<File>()?;
m.add_class::<InterfaceEnumVariant>()?;
m.add_class::<Pipeline>()?;
Ok(())
}
7 changes: 6 additions & 1 deletion teo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
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 .teo import (
App, Namespace, HandlerGroup, Model, Field, Relation, Property, Enum,
EnumMember, Response, Request, ReadOnlyHeaderMap, ReadWriteHeaderMap,
HandlerMatch, RequestCtx, ObjectId, Range, OptionVariant, EnumVariant,
File, Pipeline, InterfaceEnumVariant, Pipeline
)
from typing import TypeVar, Union
from signal import signal, SIGINT
from sys import exit
Expand Down

0 comments on commit 63ddd31

Please sign in to comment.