Created
December 10, 2019 06:39
-
-
Save jugmac00/8c2a7dd543f245c76a8ab72169cdf231 to your computer and use it in GitHub Desktop.
refactor inline bug 1
This file contains hidden or 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
D = dict() | |
def access_dict(D): | |
return D.get("some_key", None) | |
def do_stuff(): | |
if access_dict() is None: | |
pass | |
# now try to inline access_dict | |
# result with IntelliJ 2019.3 is | |
D = dict() | |
def do_stuff(): | |
if D.get("some_key", none) is None: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment