1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-07 07:02:53 +03:00

upgrade pyre version in fbcode/opensource - batch 1 (#1024)

Summary: Pull Request resolved: https://github.com/facebookincubator/zstrong/pull/1024

Differential Revision: D64977670

fbshipit-source-id: 505d9709aa088f7811e0f4d6d7ba26b07ffdbc94
This commit is contained in:
generatedunixname89002005307016
2024-10-25 21:48:37 -07:00
committed by Facebook GitHub Bot
parent d1bd8709a3
commit e58ab4f337
3 changed files with 4 additions and 2 deletions

View File

@@ -151,8 +151,10 @@ class Parser(object):
def ident(self) -> str:
ident = self.lex.get_token()
# pyre-fixme[6]: For 2nd argument expected `str` but got `Optional[str]`.
if not re.match("[a-zA-Z]+", ident):
raise Exception("expected identifier found %s" % ident)
# pyre-fixme[7]: Expected `str` but got `Optional[str]`.
return ident
def parse_not(self) -> NotExpr:

View File

@@ -216,7 +216,6 @@ class HostType(object):
ostype = "darwin"
elif is_windows():
ostype = "windows"
# pyre-fixme[16]: Module `sys` has no attribute `getwindowsversion`.
distrovers = str(sys.getwindowsversion().major)
elif sys.platform.startswith("freebsd"):
ostype = "freebsd"

View File

@@ -95,13 +95,14 @@ endif()
# something like the following pip3 command:
# pip3 --isolated install --no-cache-dir --no-index --system \
# --target <install_dir> <wheel_file>
# pyre-fixme[13] fields initialized in _build
class PythonWheelBuilder(BuilderBase):
"""This Builder can take Python wheel archives and install them as python libraries
that can be used by add_fb_python_library()/add_fb_python_executable() CMake rules.
"""
# pyre-fixme[13]: Attribute `dist_info_dir` is never initialized.
dist_info_dir: str
# pyre-fixme[13]: Attribute `template_format_dict` is never initialized.
template_format_dict: Dict[str, str]
def _build(self, reconfigure: bool) -> None: