Skip to content

Commit

Permalink
upgrade pyre version in fbcode/mapillary - batch 1
Browse files Browse the repository at this point in the history
Differential Revision: D42946608

fbshipit-source-id: 81f76766e35948ed37d84dca79420b68b23b3c3a
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Feb 2, 2023
1 parent 1a69f7c commit 8b97fa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opensfm/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,7 @@ def __init__(self) -> None:

@classmethod
def exists(cls, path: str) -> str:
# pyre-fixme[7]: Expected `str` but got `bool`.
return os.path.exists(path)

@classmethod
Expand All @@ -1360,10 +1361,12 @@ def ls(cls, path: str) -> List[str]:

@classmethod
def isfile(cls, path: str) -> str:
# pyre-fixme[7]: Expected `str` but got `bool`.
return os.path.isfile(path)

@classmethod
def isdir(cls, path: str) -> str:
# pyre-fixme[7]: Expected `str` but got `bool`.
return os.path.isdir(path)

@classmethod
Expand Down Expand Up @@ -1419,4 +1422,5 @@ def image_size(cls, path: str) -> Tuple[int, int]:

@classmethod
def timestamp(cls, path: str) -> str:
# pyre-fixme[7]: Expected `str` but got `float`.
return os.path.getmtime(path)

0 comments on commit 8b97fa7

Please sign in to comment.