Skip to content

Instantly share code, notes, and snippets.

@jugmac00
Created December 10, 2019 06:39
Show Gist options
  • Save jugmac00/8c2a7dd543f245c76a8ab72169cdf231 to your computer and use it in GitHub Desktop.
Save jugmac00/8c2a7dd543f245c76a8ab72169cdf231 to your computer and use it in GitHub Desktop.
refactor inline bug 1
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