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 not_none(nullable_parameters=None): | |
# values given by real_decorator (see below) | |
def the_actual_test(f, expected_args_with_given, allowed_nullable_args): | |
has_none = False | |
bad_parameters = [] | |
for key, value in expected_args_with_given.items(): | |
if (value is None and nullable_parameters is None) or \ | |
(value is None and key not in nullable_parameters): | |
bad_parameters.append(key) |
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
# problem: when presenting, I want to obscure | |
# my prompt to act like it's at root of file system | |
# and be very basic with no git info, etc. | |
# solution: this theme lets you set a ENV to the path | |
# of your presentation, which will help remove unneeded prompt | |
# features while in that path | |
# oh-my-zsh theme for presenting demos | |
# based off the default rubbyrussell theme |