fix broken instance/type check
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s

This commit is contained in:
Corban-Lee Jones 2024-12-07 23:28:22 +00:00
parent 2b6f68de0d
commit 32b51fcd1d

View File

@ -14,7 +14,7 @@ class LogFileReader:
"""
"""
def __init__(self, file_path: Path):
if type(file_path) != Path:
if not isinstance(file_path, Path):
raise TypeError(f"file_path must be type Path, not {type(file_path)}")
self.file_path = file_path