Skip to content

Commit

Permalink
Add linting to project
Browse files Browse the repository at this point in the history
- Reformated
  • Loading branch information
Guille-Barrena committed May 24, 2023
1 parent 3478fc3 commit 0bbd25c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pypendency/container.py
Expand Up @@ -147,7 +147,7 @@ def __instance_from_fqn(self, fully_qualified_name: str, args: list, kwargs: dic
raise exceptions.ServiceNotFoundFromFullyQualifiedName(fully_qualified_name)

try:
return klass(*args, **kwargs) # type: ignore
return klass(*args, **kwargs) # type: ignore
except TypeError as e:
raise exceptions.ServiceInstantiationFailed(fully_qualified_name) from e

Expand Down
4 changes: 2 additions & 2 deletions src/pypendency/loaders/py_loader.py
Expand Up @@ -26,7 +26,7 @@ def __load_by_absolute_path(self, resource: str) -> None:

module = module_from_spec(spec)
spec.loader.exec_module(module)
self.__load_module(resource, module) # type: ignore
self.__load_module(resource, module) # type: ignore

def __load_module(self, resource: str, module: PythonLoadableModuleType) -> None:
try:
Expand All @@ -40,7 +40,7 @@ def load_by_module_name(self, resource: str) -> None:
if package is None:
raise exceptions.ResourceNotFound(resource)

self.__load_module(resource, package) # type: ignore
self.__load_module(resource, package) # type: ignore

def load_dir(self, directory: str) -> None:
self._guard_path_is_absolute(directory)
Expand Down

0 comments on commit 0bbd25c

Please sign in to comment.