Fix typos in multiple files (GH-26689)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Binbin 2021-06-13 10:47:44 +08:00 committed by GitHub
parent 736ed6f7a9
commit 17b16e13bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1023 additions and 1023 deletions

View file

@ -62,7 +62,7 @@ class SymbolTable:
def get_type(self):
"""Return the type of the symbol table.
The values retuned are 'class', 'module' and
The values returned are 'class', 'module' and
'function'.
"""
if self._table.type == _symtable.TYPE_MODULE:
@ -245,7 +245,7 @@ class Symbol:
return bool(self.__flags & DEF_PARAM)
def is_global(self):
"""Return *True* if the sysmbol is global.
"""Return *True* if the symbol is global.
"""
return bool(self.__scope in (GLOBAL_IMPLICIT, GLOBAL_EXPLICIT)
or (self.__module_scope and self.__flags & DEF_BOUND))