Skip to content

Commit

Permalink
Fix spacing around exponent operatory to pass black linting
Browse files Browse the repository at this point in the history
  • Loading branch information
joelostblom committed Mar 22, 2022
1 parent c28c710 commit bee9836
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions altair/utils/tests/test_plugin_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_plugin_registry():
assert plugins.get() is None
assert repr(plugins) == "TypedCallableRegistry(active='', registered=[])"

plugins.register("new_plugin", lambda x: x ** 2)
plugins.register("new_plugin", lambda x: x**2)
assert plugins.names() == ["new_plugin"]
assert plugins.active == ""
assert plugins.get() is None
Expand All @@ -46,7 +46,7 @@ def test_plugin_registry():
def test_plugin_registry_extra_options():
plugins = GeneralCallableRegistry()

plugins.register("metadata_plugin", lambda x, p=2: x ** p)
plugins.register("metadata_plugin", lambda x, p=2: x**p)
plugins.enable("metadata_plugin")
assert plugins.get()(3) == 9

Expand Down Expand Up @@ -86,7 +86,7 @@ def test_plugin_registry_global_settings():
def test_plugin_registry_context():
plugins = GeneralCallableRegistry()

plugins.register("default", lambda x, p=2: x ** p)
plugins.register("default", lambda x, p=2: x**p)

# At first there is no plugin enabled
assert plugins.active == ""
Expand Down

0 comments on commit bee9836

Please sign in to comment.