def convert(self, argument: str) -> Callable[[], "sqlutil.Database"]:
Returns the value of this argument.
if not argument:
raise TypeError("Path flag must be set")
return _Database(self.database_class, argument, self.must_exist)
After Change
def convert(self, argument: str) -> DatabaseFlag:
Returns the value of this argument.
if not argument:
raise absl_app.UsageError("Database flag must be set")
return DatabaseFlag(self.database_class, argument, self.must_exist)