We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operating system: Windows 10 Python version: 3.7 Black version: 19.3b0 (installed with pip) Does also happen on master: No.
pip
I try to format this code:
def find_badge_arbitrages(badge_data, market_order_dict): badge_arbitrages = dict() for app_id in badge_data.keys(): individual_badge_data = badge_data[app_id] listing_hash = individual_badge_data['listing_hash'] badge_arbitrages[listing_hash] = dict() badge_arbitrages[listing_hash]['name'] = individual_badge_data['name'] badge_arbitrages[listing_hash]['gem_amount'] = individual_badge_data['gem_amount'] badge_arbitrages[listing_hash]['gem_price_including_fee'] = individual_badge_data['gem_price'] badge_arbitrages[listing_hash]['ask_including_fee'] = market_order_dict[listing_hash]['ask'] badge_arbitrages[listing_hash]['ask_volume'] = market_order_dict[listing_hash]['ask_volume'] return badge_arbitrages
With the version of black installed with pip, I get a weirdly inconsistent output:
black
def find_badge_arbitrages(badge_data, market_order_dict): badge_arbitrages = dict() for app_id in badge_data.keys(): individual_badge_data = badge_data[app_id] listing_hash = individual_badge_data["listing_hash"] badge_arbitrages[listing_hash] = dict() badge_arbitrages[listing_hash]["name"] = individual_badge_data["name"] badge_arbitrages[listing_hash]["gem_amount"] = individual_badge_data[ "gem_amount" ] badge_arbitrages[listing_hash][ "gem_price_including_fee" ] = individual_badge_data["gem_price"] badge_arbitrages[listing_hash]["ask_including_fee"] = market_order_dict[ listing_hash ]["ask"] badge_arbitrages[listing_hash]["ask_volume"] = market_order_dict[listing_hash][ "ask_volume" ] return badge_arbitrages
With the online formatter, I get a nice output:
def find_badge_arbitrages(badge_data, market_order_dict): badge_arbitrages = dict() for app_id in badge_data.keys(): individual_badge_data = badge_data[app_id] listing_hash = individual_badge_data["listing_hash"] badge_arbitrages[listing_hash] = dict() badge_arbitrages[listing_hash][ "name" ] = individual_badge_data["name"] badge_arbitrages[listing_hash][ "gem_amount" ] = individual_badge_data["gem_amount"] badge_arbitrages[listing_hash][ "gem_price_including_fee" ] = individual_badge_data["gem_price"] badge_arbitrages[listing_hash][ "ask_including_fee" ] = market_order_dict[listing_hash]["ask"] badge_arbitrages[listing_hash][ "ask_volume" ] = market_order_dict[listing_hash]["ask_volume"] return badge_arbitrages
I hope the version installed with pip will catch up with the master version.
master
The text was updated successfully, but these errors were encountered:
soon. :) #517
Sorry, something went wrong.
No branches or pull requests
Operating system: Windows 10
Python version: 3.7
Black version: 19.3b0 (installed with
pip
)Does also happen on master: No.
I try to format this code:
With the version of
black
installed withpip
, I get a weirdly inconsistent output:With the online formatter, I get a nice output:
I hope the version installed with
pip
will catch up with themaster
version.The text was updated successfully, but these errors were encountered: