This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def for_all_own_methods(decorator: Callable): | |
""" | |
class decorator | |
apply decorator function to all class methods, excluding inherited ones | |
Args: | |
decorator ([Callable]): decorator function to apply to all own methods | |
""" | |
def decorate(cls): | |
import inspect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
RUN echo 1 | |
RUN echo "#!/bin/bash" > test.sh && \ | |
echo "echo x" >> test.sh && \ | |
chmod +x test.sh && \ | |
./test.sh |
OlderNewer