Skip to content

Commit

Permalink
make Pyre happy
Browse files Browse the repository at this point in the history
Summary:
Less red files in VS Code

Code regenerated by
```
fbcode (aa3405973)]$ buck2 run //glean/schema/gen:gen-schema -- --py glean/schema/ --dir glean/schema/source
```

Reviewed By: josefs

Differential Revision: D55923141

fbshipit-source-id: eea64c5f7fe94408e05e6b57da96a489d1ee7358
  • Loading branch information
Alena Chernikava authored and facebook-github-bot committed Apr 10, 2024
1 parent d9a789b commit 2cfde52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glean/schema/gen/Glean/Schema/Gen/Python.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ genSchemaPy _version preddefs typedefs =
, "T = TypeVar(\"T\")"
, ""
, "class Just(Generic[T]):"
, " " <> "just: T = None"
, " " <> "def __init__(self, just: T = None) -> None:"
, " " <> "just: T | None = None"
, " " <> "def __init__(self, just: T | None = None) -> None:"
, " " <> "self.just = just"
, " " <> "def get(self) -> Optional[T]:"
, " " <> "return self.just"
Expand Down

0 comments on commit 2cfde52

Please sign in to comment.