Skip to content

Commit

Permalink
Fix type error in validate_sphinx script (#2665)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #2665

Reverts part of D61274223

Reviewed By: mpolson64

Differential Revision: D61388107

fbshipit-source-id: 7e98aa0ca82aa3e21a5d57ffa6ef0a43a4beeecd
  • Loading branch information
esantorella authored and facebook-github-bot committed Aug 16, 2024
1 parent d1618c4 commit 885288e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/validate_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import os
import pkgutil
import re
from typing import Set


# Paths are relative to top-level Ax directory (which is passed into fxn below)
Expand All @@ -28,7 +29,7 @@
}


def parse_rst(rst_filename: str) -> set[str]:
def parse_rst(rst_filename: str) -> Set[str]:
"""Extract automodule directives from rst."""
ret = set()
with open(rst_filename, "r") as f:
Expand Down

0 comments on commit 885288e

Please sign in to comment.