-
I have been doing some experiments using different decorators to speed the code (e.g., `functools.lru_cache`, `torch.compile`...), and I think that we should consider a generic mechanism to let the us…
-
Typescript 5.0 recently released. It changes decorators quite a bit.
Will this library work without the experimental decorators flag? I think that should be written in the Readme somewhere.
-
### Summary:
Love the library, particularly the single-table design support, but wanted to follow up on: https://github.com/dynamoose/dynamoose/issues/1071#issuecomment-1157874552
Any chance s…
-
Allow for
```python3
def italicize(text):
return f"{ text }"
@italicize
[unplate.begin(my_template)] @ r"""
I may be {{ adj1 }},
but at least I'm not {{ adj2 }}!
""" [unplate.end]
```
…
-
http://hapijs.com/api#serverdecoratetype-property-method
new directory `decorators`.
I think we should use the sub-directory as the type and the filename as the property. Ex: `decorators/reply/succe…
-
ES7的装饰器是一个返回function的表达式(意思就是要么本身是函数要么返回函数),修饰属性的时候接受target, name, propertyDescriptor作为参数;修饰类的时候接受constructor作为target
装饰器一般是用于透明的包装一些东西的函数,加一些额外的功能
本质是Object.definePropertyDescriptor
ES201…
-
Hey there !
Looking at macros that seem super cool. One of the first things I tried was to use a macro as a decorator:
```
def foo(a:'ast'):
parint(a)
@foo!
def bar():
pass
```
…
-
# 一、概念
标准定义:
>A decorator is: **an expression**
> - that evaluates to a function
> - that takes the target, name, and decorator descriptor as arguments
and optionally returns a decorator descript…
-
Hi there,
First, thanks for an amazing project! Words can't express how much attrs has changed my programming career for the better.
I have found that I often write some validation function whic…
-
As per the issue title. This throws an error:
```
from hamilton.function_modifiers import inject, source, parameterize
@inject(params=source('my_func__params'))
@parameterize(
my_func_a={…