diff --git a/demo.ipynb b/demo.ipynb index dd779d9..8cf7d1c 100644 --- a/demo.ipynb +++ b/demo.ipynb @@ -23,9 +23,7 @@ "\n", "\n", "def all_subclasses(cls):\n", - " return set(cls.__subclasses__()).union(\n", - " [s for c in cls.__subclasses__() for s in all_subclasses(c)]\n", - " )" + " return set(cls.__subclasses__()).union([s for c in cls.__subclasses__() for s in all_subclasses(c)])" ] }, { @@ -46,11 +44,7 @@ " for k, v in args.parameters.items():\n", " if k == \"self\":\n", " continue\n", - " if (\n", - " k != \"kwargs\"\n", - " and v.POSITIONAL_OR_KEYWORD\n", - " and v.default is inspect.Parameter.empty\n", - " ):\n", + " if k != \"kwargs\" and v.POSITIONAL_OR_KEYWORD and v.default is inspect.Parameter.empty:\n", " _mock_args[k] = MagicMock()\n", " print(\"mocked \", k, v) # noqa: T201\n", " try:\n",