Last active
August 12, 2020 19:50
-
-
Save thepabloaguilar/532d1ab33637d931fef087dfa55ed946 to your computer and use it in GitHub Desktop.
[Article] Monkey Patching is not too bad - Example class with env variable
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
import os | |
class Example: | |
def __init__(self) -> None: | |
if os.getenv('RETURNS_TRACE'): | |
self._tracking = [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment