Skip to content

Commit

Permalink
Add positional-only marker.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Feb 22, 2025
1 parent 088bfc4 commit 3ca62bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyplumio/helpers/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def _import_module(name: str) -> ModuleType:
return await loop.run_in_executor(None, importlib.import_module, f"pyplumio.{name}")


async def create_instance(class_path: str, cls: type[T], **kwargs: Any) -> T:
async def create_instance(class_path: str, /, cls: type[T], **kwargs: Any) -> T:
"""Return a class instance from the class path."""
module_name, class_name = class_path.rsplit(".", 1)
try:
Expand Down

0 comments on commit 3ca62bb

Please sign in to comment.