Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry committed Dec 5, 2024
1 parent 05b1dad commit c66bb85
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)])"
]
},
{
Expand All @@ -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",
Expand Down

0 comments on commit c66bb85

Please sign in to comment.