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:
committed by
Facebook GitHub Bot
parent
d1bd8709a3
commit
e58ab4f337
@@ -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:
|
||||
|
Reference in New Issue
Block a user