Skip to content

Commit

Permalink
Add pyre-fixme to avoid false positive type error
Browse files Browse the repository at this point in the history
  • Loading branch information
WangGithubUser committed Sep 10, 2023
1 parent 179192e commit 8717c8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/backend_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def serialize(self) -> Dict[str, object]:
}

def get_checked_directory_allowlist(self) -> Set[str]:
# pyre-fixme: Incompatible return type [7]: Expected Set[str] but got Set[Optional[str]].
return {element.path() for element in self.elements if element is not None}

def cleanup(self) -> None:
Expand Down Expand Up @@ -98,6 +99,7 @@ def serialize(self) -> Dict[str, object]:
}

def get_checked_directory_allowlist(self) -> Set[str]:
# pyre-fixme: Incompatible return type [7]: Expected Set[str] but got Set[Optional[str]].
return {element.path() for element in self.elements if element is not None}

def cleanup(self) -> None:
Expand Down

0 comments on commit 8717c8a

Please sign in to comment.