Is it really necessary to make difference between regular class decorators and those accepting arguments?
Because it would be great if we didn't have to test presence of arguments, how would you implement @dec with optional arguments?
It feels inconsistent - I'd rather have to return function all the time instead of doing nasty isClass checks
@dec({...})
class SomeClass{
...
}
@dec
class AnotherClass{
...
}
Is it really necessary to make difference between regular class decorators and those accepting arguments?
Because it would be great if we didn't have to test presence of arguments, how would you implement @dec with optional arguments?
It feels inconsistent - I'd rather have to return function all the time instead of doing nasty
isClasschecks