Skip to content

Commit

Permalink
feat: support validating callable objects with @Annotated decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Aug 4, 2024
1 parent 26a13b8 commit e5b9df3
Show file tree
Hide file tree
Showing 7 changed files with 778 additions and 243 deletions.
5 changes: 2 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,15 @@
BUILD_DIR = Path("cython_build")



cythonized_modules = cythonize(
[
Extension(
"koerce.builders",
["koerce/builders.py"],
# extra_compile_args=["-O3"]
),
Extension(
"koerce.patterns",
["koerce/patterns.py"],
# extra_compile_args=["-O3"]
),
],
build_dir=BUILD_DIR,
Expand All @@ -39,9 +36,11 @@
# "wraparound": False,
# "nonecheck": False,
# "profile": True,
# "annotation_typing": False
},
# always rebuild, even if files untouched
force=False,
# emit_linenums=True
)

dist = Distribution({"ext_modules": cythonized_modules})
Expand Down
Loading

0 comments on commit e5b9df3

Please sign in to comment.