Skip to content

Commit

Permalink
Add comment for if statement
Browse files Browse the repository at this point in the history
Signed-off-by: Kim, Vinnam <[email protected]>
  • Loading branch information
vinnamkim committed Oct 23, 2023
1 parent dff251d commit 3a3a62f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/datumaro/components/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def _get_plugin_exports(cls, module, types):
and issubclass(s, types)
and s not in types
and (
getmodule(s) is None
getmodule(s)
is None # Custom plugin (in the Datumaro project) can be a single file and have no module
or not getmodule(s).__package__.startswith("datumaro.components")
)
]
Expand Down

0 comments on commit 3a3a62f

Please sign in to comment.