Skip to content

Commit 2210eb6

Browse files
author
Christopher Doris
committed
add py macro to API
1 parent 4a40242 commit 2210eb6

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/API/exports.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export pycallable
9696
export pycompile
9797
export @pyeval
9898
export @pyexec
99+
export @py
99100
export @pyconst
100101

101102
# Convert

src/API/macros.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ macro pyconst end
55

66
# Convert
77
macro pyconvert end
8+
9+
# PyMacro
10+
macro py end

src/PyMacro/PyMacro.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ module PyMacro
2121
using ..PythonCall
2222
using ..Core
2323

24+
import ..PythonCall: @py
25+
2426
using MacroTools: MacroTools, @capture, isexpr
2527

2628
const PY_MACRO_NILOPS = Dict(
@@ -877,6 +879,5 @@ See the online documentation for more details.
877879
macro py(ex)
878880
esc(py_macro(ex, __module__, __source__))
879881
end
880-
export @py
881882

882883
end

0 commit comments

Comments
 (0)