[TYPO]Macro typo

This commit is contained in:
Fabien BOURGEOIS 2020-03-27 19:18:40 +01:00
parent 06b1371255
commit f8353799ee
2 changed files with 6 additions and 7 deletions

View File

@ -134,12 +134,11 @@
"Macro to make computed definition smoother"
(setv fname f"_compute_{(mangle field)}" descr f"Computes {field}"
dependencies (list (map mangle dependencies)))
`(do
(import [hy.models [HySymbol]])
(with-decorator (.depends api ~@dependencies)
(defn ~(HySymbol fname) [self]
~descr
~body))))
(import [hy.models [HySymbol]])
`(with-decorator (.depends api ~@dependencies)
(defn ~(HySymbol fname) [self]
~descr
~body)))
(defmacro compute-field [fname body]
"Takes fname Symbol and body to create computed field"

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name="hy_odoo",
version="0.2.1",
version="0.2.2",
packages=find_packages(),
package_data={
'hy_odoo': ['*.hy'],