@logpath.setter
def logpath(self, logpath: Union[(str, Path, None)]):
    _type_check(logpath, 'logfile', (str, Path))
    self.logfile = Path(logpath).open('a')
    self._logpath = Path(logpath)
@logpath.setter
def logpath(self, logpath: Union[(str, Path, None)]):
    _type_check(logpath, 'logfile', (str, Path))
    self.logfile = Path(logpath).open('a')
    self._logpath = Path(logpath)