1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +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: