Skip to content

Commit

Permalink
Fix open source imports for Github tests (#94)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #94

SAPP tests began breaking because of an import error, so this diff fixes the import that causes the issue.

Reviewed By: arthaud

Differential Revision: D47724871

fbshipit-source-id: bfe80ab1d2097257c54350e80bd083bdd7c44a41
  • Loading branch information
connernilsen authored and facebook-github-bot committed Jul 24, 2023
1 parent c4e6e2d commit 7fb9c99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion sapp/sarif_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@

import sys
from enum import Enum
from typing import Dict, List, Optional, TypedDict, Union
from typing import Dict, List, Optional, Union

if sys.version_info >= (3, 8):
from typing import TypedDict
else:
from typing_extensions import TypedDict

if sys.version_info >= (3, 10):
from typing import TypeAlias
Expand Down
4 changes: 2 additions & 2 deletions sapp/tests/fake_object_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
import datetime
from typing import Callable, Optional

from tools.sapp.sapp.models import RunStatus

from ..bulk_saver import BulkSaver

from ..models import (
ClassTypeInterval,
DBID,
Expand All @@ -23,6 +22,7 @@
MetaRun,
PurgeStatusForInstance,
Run,
RunStatus,
SharedText,
SharedTextKind,
SourceLocation,
Expand Down

0 comments on commit 7fb9c99

Please sign in to comment.