├── .gitattributes ├── src ├── Analysis │ └── Ast │ │ ├── Test │ │ └── PathClassificationTests.cs │ │ └── Impl │ │ ├── Typeshed │ │ ├── stdlib │ │ │ ├── 2 │ │ │ │ ├── distutils │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── emxccompiler.pyi │ │ │ │ ├── email │ │ │ │ │ ├── mime │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ ├── nonmultipart.pyi │ │ │ │ │ │ ├── base.pyi │ │ │ │ │ │ ├── message.pyi │ │ │ │ │ │ ├── text.pyi │ │ │ │ │ │ ├── multipart.pyi │ │ │ │ │ │ ├── audio.pyi │ │ │ │ │ │ ├── image.pyi │ │ │ │ │ │ └── application.pyi │ │ │ │ │ ├── encoders.pyi │ │ │ │ │ ├── MIMEText.pyi │ │ │ │ │ ├── iterators.pyi │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ ├── base64mime.pyi │ │ │ │ │ ├── generator.pyi │ │ │ │ │ ├── parser.pyi │ │ │ │ │ ├── header.pyi │ │ │ │ │ ├── quoprimime.pyi │ │ │ │ │ └── feedparser.pyi │ │ │ │ ├── encodings │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── utf_8.pyi │ │ │ │ ├── atexit.pyi │ │ │ │ ├── md5.pyi │ │ │ │ ├── nturl2path.pyi │ │ │ │ ├── importlib.pyi │ │ │ │ ├── whichdb.pyi │ │ │ │ ├── htmlentitydefs.pyi │ │ │ │ ├── getpass.pyi │ │ │ │ ├── robotparser.pyi │ │ │ │ ├── user.pyi │ │ │ │ ├── future_builtins.pyi │ │ │ │ ├── markupbase.pyi │ │ │ │ ├── sha.pyi │ │ │ │ ├── glob.pyi │ │ │ │ ├── fnmatch.pyi │ │ │ │ ├── dircache.pyi │ │ │ │ ├── commands.pyi │ │ │ │ ├── _md5.pyi │ │ │ │ ├── toaiff.pyi │ │ │ │ ├── genericpath.pyi │ │ │ │ ├── _threading_local.pyi │ │ │ │ ├── pipes.pyi │ │ │ │ ├── _sha.pyi │ │ │ │ ├── _warnings.pyi │ │ │ │ ├── mutex.pyi │ │ │ │ ├── _json.pyi │ │ │ │ ├── runpy.pyi │ │ │ │ ├── compileall.pyi │ │ │ │ └── getopt.pyi │ │ │ ├── 3 │ │ │ │ ├── concurrent │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── futures │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ ├── process.pyi │ │ │ │ │ │ └── thread.pyi │ │ │ │ ├── email │ │ │ │ │ ├── mime │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ ├── nonmultipart.pyi │ │ │ │ │ │ ├── message.pyi │ │ │ │ │ │ ├── text.pyi │ │ │ │ │ │ ├── base.pyi │ │ │ │ │ │ ├── audio.pyi │ │ │ │ │ │ ├── image.pyi │ │ │ │ │ │ ├── application.pyi │ │ │ │ │ │ └── multipart.pyi │ │ │ │ │ ├── encoders.pyi │ │ │ │ │ ├── iterators.pyi │ │ │ │ │ ├── contentmanager.pyi │ │ │ │ │ └── feedparser.pyi │ │ │ │ ├── urllib │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── error.pyi │ │ │ │ ├── nturl2path.pyi │ │ │ │ ├── encodings │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── utf_8.pyi │ │ │ │ ├── html │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── entities.pyi │ │ │ │ ├── multiprocessing │ │ │ │ │ └── process.pyi │ │ │ │ ├── msvcrt.pyi │ │ │ │ ├── getpass.pyi │ │ │ │ ├── _markupbase.pyi │ │ │ │ ├── tkinter │ │ │ │ │ ├── commondialog.pyi │ │ │ │ │ └── dialog.pyi │ │ │ │ ├── curses │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── textpad.pyi │ │ │ │ ├── _thread.pyi │ │ │ │ ├── atexit.pyi │ │ │ │ ├── fnmatch.pyi │ │ │ │ ├── _compression.pyi │ │ │ │ ├── _warnings.pyi │ │ │ │ ├── runpy.pyi │ │ │ │ ├── getopt.pyi │ │ │ │ ├── _posixsubprocess.pyi │ │ │ │ └── _threading_local.pyi │ │ │ ├── 2and3 │ │ │ │ ├── distutils │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ ├── command │ │ │ │ │ │ ├── bdist.pyi │ │ │ │ │ │ ├── build.pyi │ │ │ │ │ │ ├── check.pyi │ │ │ │ │ │ ├── clean.pyi │ │ │ │ │ │ ├── config.pyi │ │ │ │ │ │ ├── install.pyi │ │ │ │ │ │ ├── sdist.pyi │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ ├── bdist_dumb.pyi │ │ │ │ │ │ ├── bdist_rpm.pyi │ │ │ │ │ │ ├── build_clib.pyi │ │ │ │ │ │ ├── build_ext.pyi │ │ │ │ │ │ ├── install_data.pyi │ │ │ │ │ │ ├── install_lib.pyi │ │ │ │ │ │ ├── register.pyi │ │ │ │ │ │ ├── bdist_packager.pyi │ │ │ │ │ │ ├── bdist_wininst.pyi │ │ │ │ │ │ ├── build_scripts.pyi │ │ │ │ │ │ ├── install_headers.pyi │ │ │ │ │ │ ├── install_scripts.pyi │ │ │ │ │ │ ├── bdist_msi.pyi │ │ │ │ │ │ └── build_py.pyi │ │ │ │ │ ├── debug.pyi │ │ │ │ │ ├── filelist.pyi │ │ │ │ │ ├── bcppcompiler.pyi │ │ │ │ │ ├── msvccompiler.pyi │ │ │ │ │ ├── unixccompiler.pyi │ │ │ │ │ ├── dist.pyi │ │ │ │ │ ├── cygwinccompiler.pyi │ │ │ │ │ ├── spawn.pyi │ │ │ │ │ ├── dep_util.pyi │ │ │ │ │ ├── file_util.pyi │ │ │ │ │ └── archive_util.pyi │ │ │ │ ├── wsgiref │ │ │ │ │ └── __init__.pyi │ │ │ │ ├── xml │ │ │ │ │ ├── etree │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ └── cElementTree.pyi │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── parsers │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ └── expat │ │ │ │ │ │ └── model.pyi │ │ │ │ ├── lib2to3 │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── pgen2 │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ └── literals.pyi │ │ │ │ ├── sqlite3 │ │ │ │ │ └── __init__.pyi │ │ │ │ ├── keyword.pyi │ │ │ │ ├── ctypes │ │ │ │ │ └── util.pyi │ │ │ │ ├── pyexpat │ │ │ │ │ └── model.pyi │ │ │ │ ├── marshal.pyi │ │ │ │ ├── nis.pyi │ │ │ │ ├── copy.pyi │ │ │ │ ├── quopri.pyi │ │ │ │ ├── rlcompleter.pyi │ │ │ │ ├── grp.pyi │ │ │ │ ├── tty.pyi │ │ │ │ ├── netrc.pyi │ │ │ │ ├── _random.pyi │ │ │ │ ├── _heapq.pyi │ │ │ │ ├── site.pyi │ │ │ │ ├── uu.pyi │ │ │ │ ├── _bisect.pyi │ │ │ │ ├── linecache.pyi │ │ │ │ ├── __future__.pyi │ │ │ │ └── pwd.pyi │ │ │ ├── 3.4 │ │ │ │ └── asyncio │ │ │ │ │ └── coroutines.pyi │ │ │ └── 3.6 │ │ │ │ └── secrets.pyi │ │ └── third_party │ │ │ ├── 2 │ │ │ ├── fb303 │ │ │ │ └── __init__.pyi │ │ │ ├── kazoo │ │ │ │ ├── __init__.pyi │ │ │ │ └── recipe │ │ │ │ │ └── __init__.pyi │ │ │ ├── OpenSSL │ │ │ │ └── __init__.pyi │ │ │ ├── concurrent │ │ │ │ ├── __init__.pyi │ │ │ │ └── futures │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ ├── process.pyi │ │ │ │ │ └── thread.pyi │ │ │ ├── scribe │ │ │ │ ├── __init__.pyi │ │ │ │ └── ttypes.pyi │ │ │ ├── tornado │ │ │ │ └── __init__.pyi │ │ │ ├── cryptography │ │ │ │ ├── __init__.pyi │ │ │ │ └── hazmat │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── primitives │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── asymmetric │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ ├── dsa.pyi │ │ │ │ │ └── rsa.pyi │ │ │ ├── six │ │ │ │ └── moves │ │ │ │ │ ├── queue.pyi │ │ │ │ │ ├── _thread.pyi │ │ │ │ │ ├── cPickle.pyi │ │ │ │ │ ├── reprlib.pyi │ │ │ │ │ ├── http_client.pyi │ │ │ │ │ ├── http_cookies.pyi │ │ │ │ │ ├── _dummy_thread.pyi │ │ │ │ │ ├── configparser.pyi │ │ │ │ │ ├── html_parser.pyi │ │ │ │ │ ├── http_cookiejar.pyi │ │ │ │ │ ├── socketserver.pyi │ │ │ │ │ ├── urllib_error.pyi │ │ │ │ │ ├── urllib_parse.pyi │ │ │ │ │ ├── xmlrpc_client.pyi │ │ │ │ │ ├── BaseHTTPServer.pyi │ │ │ │ │ ├── email_mime_text.pyi │ │ │ │ │ ├── html_entities.pyi │ │ │ │ │ ├── urllib_robotparser.pyi │ │ │ │ │ ├── SimpleHTTPServer.pyi │ │ │ │ │ └── urllib │ │ │ │ │ ├── robotparser.pyi │ │ │ │ │ ├── error.pyi │ │ │ │ │ ├── response.pyi │ │ │ │ │ └── __init__.pyi │ │ │ ├── redis │ │ │ │ ├── utils.pyi │ │ │ │ └── exceptions.pyi │ │ │ └── routes │ │ │ │ └── __init__.pyi │ │ │ ├── 3 │ │ │ ├── jwt │ │ │ │ ├── contrib │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── algorithms │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ ├── py_ecdsa.pyi │ │ │ │ │ │ └── pycrypto.pyi │ │ │ │ └── algorithms.pyi │ │ │ ├── docutils │ │ │ │ ├── __init__.pyi │ │ │ │ ├── parsers │ │ │ │ │ ├── rst │ │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ │ ├── nodes.pyi │ │ │ │ │ │ ├── states.pyi │ │ │ │ │ │ └── roles.pyi │ │ │ │ │ └── __init__.pyi │ │ │ │ ├── examples.pyi │ │ │ │ └── nodes.pyi │ │ │ ├── six │ │ │ │ └── moves │ │ │ │ │ ├── queue.pyi │ │ │ │ │ ├── _thread.pyi │ │ │ │ │ ├── cPickle.pyi │ │ │ │ │ ├── reprlib.pyi │ │ │ │ │ ├── tkinter.pyi │ │ │ │ │ ├── builtins.pyi │ │ │ │ │ ├── BaseHTTPServer.pyi │ │ │ │ │ ├── CGIHTTPServer.pyi │ │ │ │ │ ├── configparser.pyi │ │ │ │ │ ├── html_parser.pyi │ │ │ │ │ ├── http_client.pyi │ │ │ │ │ ├── http_cookies.pyi │ │ │ │ │ ├── socketserver.pyi │ │ │ │ │ ├── tkinter_ttk.pyi │ │ │ │ │ ├── urllib_error.pyi │ │ │ │ │ ├── urllib_parse.pyi │ │ │ │ │ ├── SimpleHTTPServer.pyi │ │ │ │ │ ├── _dummy_thread.pyi │ │ │ │ │ ├── email_mime_base.pyi │ │ │ │ │ ├── email_mime_text.pyi │ │ │ │ │ ├── html_entities.pyi │ │ │ │ │ ├── http_cookiejar.pyi │ │ │ │ │ ├── tkinter_dialog.pyi │ │ │ │ │ ├── tkinter_constants.pyi │ │ │ │ │ ├── email_mime_multipart.pyi │ │ │ │ │ ├── tkinter_commondialog.pyi │ │ │ │ │ ├── tkinter_filedialog.pyi │ │ │ │ │ ├── tkinter_tkfiledialog.pyi │ │ │ │ │ ├── urllib_robotparser.pyi │ │ │ │ │ ├── email_mime_nonmultipart.pyi │ │ │ │ │ └── urllib │ │ │ │ │ ├── robotparser.pyi │ │ │ │ │ ├── error.pyi │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ └── response.pyi │ │ │ └── typed_ast │ │ │ │ ├── conversions.pyi │ │ │ │ └── __init__.pyi │ │ │ └── 2and3 │ │ │ ├── google │ │ │ ├── __init__.pyi │ │ │ └── protobuf │ │ │ │ ├── util │ │ │ │ └── __init__.pyi │ │ │ │ ├── compiler │ │ │ │ └── __init__.pyi │ │ │ │ ├── internal │ │ │ │ ├── __init__.pyi │ │ │ │ ├── message_listener.pyi │ │ │ │ └── enum_type_wrapper.pyi │ │ │ │ ├── __init__.pyi │ │ │ │ ├── reflection.pyi │ │ │ │ ├── empty_pb2.pyi │ │ │ │ ├── unittest_import_public_pb2.pyi │ │ │ │ ├── source_context_pb2.pyi │ │ │ │ ├── unittest_no_arena_import_pb2.pyi │ │ │ │ ├── duration_pb2.pyi │ │ │ │ ├── any_pb2.pyi │ │ │ │ ├── timestamp_pb2.pyi │ │ │ │ └── message_factory.pyi │ │ │ ├── backports │ │ │ ├── __init__.pyi │ │ │ └── ssl_match_hostname.pyi │ │ │ ├── dateutil │ │ │ ├── __init__.pyi │ │ │ ├── tz │ │ │ │ └── __init__.pyi │ │ │ └── _common.pyi │ │ │ ├── werkzeug │ │ │ ├── contrib │ │ │ │ ├── __init__.pyi │ │ │ │ ├── limiter.pyi │ │ │ │ ├── testtools.pyi │ │ │ │ ├── jsrouting.pyi │ │ │ │ └── profiler.pyi │ │ │ ├── filesystem.pyi │ │ │ ├── posixemulation.pyi │ │ │ ├── testapp.pyi │ │ │ ├── useragents.pyi │ │ │ ├── security.pyi │ │ │ ├── script.pyi │ │ │ └── _internal.pyi │ │ │ ├── Crypto │ │ │ ├── Random │ │ │ │ ├── Fortuna │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ ├── SHAd256.pyi │ │ │ │ │ └── FortunaGenerator.pyi │ │ │ │ ├── __init__.pyi │ │ │ │ ├── OSRNG │ │ │ │ │ ├── __init__.pyi │ │ │ │ │ ├── fallback.pyi │ │ │ │ │ ├── posix.pyi │ │ │ │ │ └── rng_base.pyi │ │ │ │ └── random.pyi │ │ │ ├── Util │ │ │ │ ├── strxor.pyi │ │ │ │ ├── __init__.pyi │ │ │ │ ├── RFC1751.pyi │ │ │ │ └── Counter.pyi │ │ │ ├── Signature │ │ │ │ ├── __init__.pyi │ │ │ │ ├── PKCS1_v1_5.pyi │ │ │ │ └── PKCS1_PSS.pyi │ │ │ ├── PublicKey │ │ │ │ ├── __init__.pyi │ │ │ │ └── ElGamal.pyi │ │ │ ├── Protocol │ │ │ │ ├── __init__.pyi │ │ │ │ ├── Chaffing.pyi │ │ │ │ ├── KDF.pyi │ │ │ │ └── AllOrNothing.pyi │ │ │ ├── __init__.pyi │ │ │ ├── Hash │ │ │ │ ├── __init__.pyi │ │ │ │ ├── hashalgo.pyi │ │ │ │ ├── MD2.pyi │ │ │ │ ├── MD4.pyi │ │ │ │ ├── MD5.pyi │ │ │ │ ├── SHA.pyi │ │ │ │ ├── SHA224.pyi │ │ │ │ ├── SHA256.pyi │ │ │ │ ├── SHA384.pyi │ │ │ │ ├── SHA512.pyi │ │ │ │ ├── RIPEMD.pyi │ │ │ │ └── HMAC.pyi │ │ │ ├── Cipher │ │ │ │ ├── __init__.pyi │ │ │ │ ├── PKCS1_v1_5.pyi │ │ │ │ ├── ARC4.pyi │ │ │ │ ├── XOR.pyi │ │ │ │ ├── PKCS1_OAEP.pyi │ │ │ │ ├── AES.pyi │ │ │ │ ├── DES.pyi │ │ │ │ ├── ARC2.pyi │ │ │ │ ├── CAST.pyi │ │ │ │ ├── DES3.pyi │ │ │ │ ├── Blowfish.pyi │ │ │ │ └── blockalgo.pyi │ │ │ └── pct_warnings.pyi │ │ │ ├── pymysql │ │ │ ├── constants │ │ │ │ ├── __init__.pyi │ │ │ │ ├── FLAG.pyi │ │ │ │ └── SERVER_STATUS.pyi │ │ │ ├── util.pyi │ │ │ ├── times.pyi │ │ │ ├── charset.pyi │ │ │ └── err.pyi │ │ │ ├── pynamodb │ │ │ ├── __init__.pyi │ │ │ ├── types.pyi │ │ │ ├── connection │ │ │ │ ├── util.pyi │ │ │ │ └── __init__.pyi │ │ │ ├── settings.pyi │ │ │ └── throttle.pyi │ │ │ ├── jinja2 │ │ │ ├── constants.pyi │ │ │ ├── visitor.pyi │ │ │ └── meta.pyi │ │ │ ├── certifi.pyi │ │ │ ├── markupsafe │ │ │ ├── _constants.pyi │ │ │ ├── _native.pyi │ │ │ ├── _speedups.pyi │ │ │ └── _compat.pyi │ │ │ ├── requests │ │ │ ├── status_codes.pyi │ │ │ ├── compat.pyi │ │ │ └── hooks.pyi │ │ │ ├── boto │ │ │ ├── kms │ │ │ │ └── __init__.pyi │ │ │ ├── ec2 │ │ │ │ └── __init__.pyi │ │ │ ├── plugin.pyi │ │ │ ├── auth_handler.pyi │ │ │ ├── s3 │ │ │ │ ├── prefix.pyi │ │ │ │ ├── user.pyi │ │ │ │ ├── bucketlogging.pyi │ │ │ │ ├── deletemarker.pyi │ │ │ │ └── __init__.pyi │ │ │ └── compat.pyi │ │ │ ├── attr │ │ │ ├── converters.pyi │ │ │ ├── filters.pyi │ │ │ ├── exceptions.pyi │ │ │ └── validators.pyi │ │ │ ├── simplejson │ │ │ ├── decoder.pyi │ │ │ ├── encoder.pyi │ │ │ ├── scanner.pyi │ │ │ └── __init__.pyi │ │ │ ├── backports_abc.pyi │ │ │ ├── click │ │ │ ├── globals.pyi │ │ │ ├── _termui_impl.pyi │ │ │ └── README.md │ │ │ ├── pytz │ │ │ └── lazy.pyi │ │ │ ├── emoji.pyi │ │ │ ├── first.pyi │ │ │ └── termcolor.pyi │ │ └── Stubs │ │ └── third_party │ │ └── 2and3 │ │ └── numpy │ │ └── __init__.pyi ├── UnitTests │ └── TestData │ │ ├── Grammar │ │ ├── IndexExpr.py │ │ ├── DelimitersV2.py │ │ ├── MatMulOperator.py │ │ ├── AssignStmt2x.py │ │ ├── BinaryOperatorsV2.py │ │ ├── BytesPlus.py │ │ ├── InvalidUnicodeLiteral.py │ │ ├── Literals26.py │ │ ├── RaiseStmtV3.py │ │ ├── StringPlus.py │ │ ├── UnicodePlus.py │ │ ├── DecoratorsIllegal.py │ │ ├── Ellipsis.py │ │ ├── FuncDefV2.py │ │ ├── InvalidUnicodeLiteral2x.py │ │ ├── Keywords25.py │ │ ├── RaiseStmt.py │ │ ├── Semicolon.py │ │ ├── SetLiteral.py │ │ ├── AssertStmt.py │ │ ├── FromImportStmtIllegal.py │ │ ├── Keywords2x.py │ │ ├── ImportStmtIllegal.py │ │ ├── Keywords30.py │ │ ├── ListComp2x.py │ │ ├── UnaryOperators.py │ │ ├── YieldFromStmt.py │ │ ├── CallsIllegal.py │ │ ├── Errors3x.py │ │ ├── RaiseStmtV2.py │ │ ├── AssignStmtIllegalV3.py │ │ ├── FromFuture35.py │ │ ├── FuncDefV3Illegal.py │ │ ├── GroupingRecovery.py │ │ ├── LambdaErrors.py │ │ ├── YieldStmt.py │ │ ├── GlobalStmt.py │ │ ├── MatMulOperator2.py │ │ ├── TrueDivide.py │ │ ├── ExecStmt.py │ │ ├── TryStmtV2.py │ │ ├── AssignStmt25.py │ │ ├── DelStmtIllegal.py │ │ ├── FStringEqualsErrors.py │ │ ├── FromImportStmtIncomplete.py │ │ ├── IncompleteMemberExpr.py │ │ ├── TryStmtV3.py │ │ ├── InvalidUnicodeLiteral26Up.py │ │ ├── LambdaExpr.py │ │ ├── FromFuture24.py │ │ ├── MixedWhitespace5.py │ │ ├── WhileStmt.py │ │ ├── MixedWhitespace4.py │ │ ├── FromImportStmtV2.py │ │ ├── FromFuture25.py │ │ ├── FromFuture26.py │ │ ├── ForFinallyContinue.py │ │ ├── ListComp.py │ │ ├── AwaitStmtIllegal.py │ │ ├── ConditionalExpr.py │ │ ├── FStringEquals.py │ │ ├── SetComp.py │ │ ├── ClassDef3x.py │ │ ├── DelStmt.py │ │ ├── VarAnnotationIllegal.py │ │ ├── YieldFromExpr.py │ │ ├── GenComp.py │ │ ├── WithStmt.py │ │ ├── Calls.py │ │ ├── CoroutineDef.py │ │ ├── TryStmt.py │ │ ├── AssignStmtV3.py │ │ ├── AsyncFor37.py │ │ ├── DictComp.py │ │ ├── YieldExpr.py │ │ ├── ImportStmt.py │ │ ├── YieldStmtIllegal.py │ │ ├── DedentError.py │ │ ├── PositionalOnly.py │ │ ├── AssignStmtIllegal.py │ │ ├── AwaitStmt.py │ │ ├── IfStmt.py │ │ ├── ClassDef.py │ │ ├── Errors35.py │ │ ├── DecoratorsClassDef.py │ │ ├── PrintStmt.py │ │ ├── GenUnpack.py │ │ ├── MixedWhitespace6.py │ │ ├── AssignStmt.py │ │ ├── DecoratorsFuncDef.py │ │ ├── FuncDefTrailingComma.py │ │ ├── DecoratorsAsyncFuncDef.py │ │ ├── YieldFromStmtIllegal.py │ │ ├── RawBytes.py │ │ ├── Literals36.py │ │ ├── FuncDef.py │ │ ├── FuncDefV3.py │ │ ├── VarAnnotation.py │ │ ├── CoroutineDefIllegal.py │ │ ├── FromImportStmt.py │ │ ├── ForStmt.py │ │ ├── AsyncFor.py │ │ ├── NamedExpressionsErrors.py │ │ ├── Delimiters.py │ │ ├── BinaryOperators.py │ │ ├── AwaitAsyncNames.py │ │ ├── MixedWhitespace1.py │ │ ├── PositionalOnlyErrors.py │ │ ├── MixedWhitespace2.py │ │ ├── MixedWhitespace3.py │ │ ├── Literals.py │ │ ├── NonlocalStmt.py │ │ ├── FStringErrors.py │ │ ├── NonlocalStmtIllegal.py │ │ └── LiteralsV3.py │ │ ├── AstAnalysis │ │ ├── Package │ │ │ ├── __init__.py │ │ │ └── Module.py │ │ ├── LockCount3.py │ │ ├── LockCount2.py │ │ ├── helper │ │ │ └── __init__.py │ │ ├── DefaultArgument.py │ │ ├── LockCount1.py │ │ ├── ReturnAnnotations.pyi │ │ ├── EggZip │ │ │ ├── BasicEggZip.py │ │ │ ├── EggZipRelativeImports.py │ │ │ ├── EggZipImports.py │ │ │ ├── Basic.egg │ │ │ ├── Basic.zip │ │ │ ├── EggImports.egg │ │ │ ├── ZipImports.zip │ │ │ ├── simplejson.egg │ │ │ ├── simplejson.zip │ │ │ ├── EggRelativeImports.egg │ │ │ └── ZipRelativeImports.zip │ │ ├── TopLevelCompletions.py │ │ ├── InstanceMethod.py │ │ ├── Package-stubs │ │ │ └── Module.pyi │ │ ├── Stubs │ │ │ └── Package │ │ │ │ └── Module.pyi │ │ ├── Imports.py │ │ ├── TypingConstants.py │ │ ├── TypingConstants.pyi │ │ ├── ForwardRefGlobalFunc.py │ │ ├── ReturnAnnotation.py │ │ ├── Base.py │ │ ├── Values.py │ │ ├── ForwardRefFunc1.py │ │ ├── ForwardRefProp1.py │ │ ├── MultiValues.py │ │ ├── ReturnValues.py │ │ ├── Functions.py │ │ ├── ForwardRefFunc2.py │ │ ├── Library1.py │ │ └── Classes.py │ │ ├── HelloWorld │ │ └── Program.py │ │ ├── Formatting │ │ ├── elseBlocksFirstLineTab.py │ │ ├── elseBlocksFirstLine2.py │ │ └── elseBlocksFirstLine4.py │ │ └── random.bin └── Publish │ └── global.json ├── .sonarcloud.properties ├── .gitignore └── .github └── ISSUE_TEMPLATE ├── feature-request.md └── question.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.json -diff 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Test/PathClassificationTests.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/IndexExpr.py: -------------------------------------------------------------------------------- 1 | fob[.2] -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Package/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DelimitersV2.py: -------------------------------------------------------------------------------- 1 | `fob` 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/MatMulOperator.py: -------------------------------------------------------------------------------- 1 | 1 @ 2 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/distutils/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/concurrent/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/urllib/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/fb303/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/kazoo/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/LockCount3.py: -------------------------------------------------------------------------------- 1 | X = 1 2 | 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AssignStmt2x.py: -------------------------------------------------------------------------------- 1 | fob = -2L**31 -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/BinaryOperatorsV2.py: -------------------------------------------------------------------------------- 1 | 1 <> 2 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/BytesPlus.py: -------------------------------------------------------------------------------- 1 | b"hello" b" again" -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/InvalidUnicodeLiteral.py: -------------------------------------------------------------------------------- 1 | '\uTEST' -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Literals26.py: -------------------------------------------------------------------------------- 1 | 0o720 2 | 0b100 -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/RaiseStmtV3.py: -------------------------------------------------------------------------------- 1 | raise fob from oar -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/StringPlus.py: -------------------------------------------------------------------------------- 1 | "hello" " again" -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/UnicodePlus.py: -------------------------------------------------------------------------------- 1 | u"hello" u" again" -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/wsgiref/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/xml/etree/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/OpenSSL/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/concurrent/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/scribe/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/tornado/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DecoratorsIllegal.py: -------------------------------------------------------------------------------- 1 | @fob 2 | fob = 1 -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Ellipsis.py: -------------------------------------------------------------------------------- 1 | fob(...) 2 | 1 + ... 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FuncDefV2.py: -------------------------------------------------------------------------------- 1 | def f(a, (b, c), d): pass -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/InvalidUnicodeLiteral2x.py: -------------------------------------------------------------------------------- 1 | u'\uTEST' -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Keywords25.py: -------------------------------------------------------------------------------- 1 | with = 1 2 | as = 2 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/RaiseStmt.py: -------------------------------------------------------------------------------- 1 | raise 2 | raise fob 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Semicolon.py: -------------------------------------------------------------------------------- 1 | 1; 2; 3 2 | fob; oar; baz -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/SetLiteral.py: -------------------------------------------------------------------------------- 1 | {1} 2 | {1, 2} 3 | 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/HelloWorld/Program.py: -------------------------------------------------------------------------------- 1 | print('hello world') -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/bdist.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/build.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/check.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/clean.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/config.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/install.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/sdist.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/cryptography/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/kazoo/recipe/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/backports/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/dateutil/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/jwt/contrib/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/LockCount2.py: -------------------------------------------------------------------------------- 1 | import LockCount3 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AssertStmt.py: -------------------------------------------------------------------------------- 1 | assert 1 2 | assert 1, fob -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FromImportStmtIllegal.py: -------------------------------------------------------------------------------- 1 | from import fob -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Keywords2x.py: -------------------------------------------------------------------------------- 1 | True = 1 2 | False = 0 3 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/bdist_dumb.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/bdist_rpm.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/build_clib.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/build_ext.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/install_data.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/install_lib.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/register.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/cryptography/hazmat/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/contrib/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/docutils/__init__.pyi: -------------------------------------------------------------------------------- 1 | ... 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/docutils/parsers/rst/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/helper/__init__.py: -------------------------------------------------------------------------------- 1 | message = 'HELLO' 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ImportStmtIllegal.py: -------------------------------------------------------------------------------- 1 | from sys import ((winver)) -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Keywords30.py: -------------------------------------------------------------------------------- 1 | fob = True 2 | oar = False 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ListComp2x.py: -------------------------------------------------------------------------------- 1 | [fob for fob in oar, baz] 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/UnaryOperators.py: -------------------------------------------------------------------------------- 1 | -1 2 | ~1 3 | +1 4 | not 1 -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/YieldFromStmt.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | yield from fob -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/bdist_packager.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/bdist_wininst.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/build_scripts.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/install_headers.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/install_scripts.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/Fortuna/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/util/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pymysql/constants/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/docutils/parsers/__init__.pyi: -------------------------------------------------------------------------------- 1 | ... 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/docutils/parsers/rst/nodes.pyi: -------------------------------------------------------------------------------- 1 | ... 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/CallsIllegal.py: -------------------------------------------------------------------------------- 1 | fob(oar = 1, oar = 2) 2 | fob(1 = 2) -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Errors3x.py: -------------------------------------------------------------------------------- 1 | class X: 2 | nonlocal __class__ 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/RaiseStmtV2.py: -------------------------------------------------------------------------------- 1 | raise fob, oar 2 | raise fob, oar, baz -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/cryptography/hazmat/primitives/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/queue.pyi: -------------------------------------------------------------------------------- 1 | from Queue import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/compiler/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/internal/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/queue.pyi: -------------------------------------------------------------------------------- 1 | from queue import * 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AssignStmtIllegalV3.py: -------------------------------------------------------------------------------- 1 | fob, *oar, *baz = 1, 2, 3, 4 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FromFuture35.py: -------------------------------------------------------------------------------- 1 | from __future__ import generator_stop 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FuncDefV3Illegal.py: -------------------------------------------------------------------------------- 1 | def f(*): pass 2 | def f(*, ): pass -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/GroupingRecovery.py: -------------------------------------------------------------------------------- 1 | fob = ( 2 | def f(a): 3 | pass -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/LambdaErrors.py: -------------------------------------------------------------------------------- 1 | lambda 2 | lambda x, y 3 | lambda x 1 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/YieldStmt.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | yield 1 3 | yield 1, 2 -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/_thread.pyi: -------------------------------------------------------------------------------- 1 | from thread import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/cPickle.pyi: -------------------------------------------------------------------------------- 1 | from cPickle import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/reprlib.pyi: -------------------------------------------------------------------------------- 1 | from repr import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pynamodb/__init__.pyi: -------------------------------------------------------------------------------- 1 | __license__: str 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/_thread.pyi: -------------------------------------------------------------------------------- 1 | from _thread import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/cPickle.pyi: -------------------------------------------------------------------------------- 1 | from pickle import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/reprlib.pyi: -------------------------------------------------------------------------------- 1 | from reprlib import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/tkinter.pyi: -------------------------------------------------------------------------------- 1 | from tkinter import * 2 | -------------------------------------------------------------------------------- /src/Publish/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "version": "3.1.409" 4 | } 5 | } -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/GlobalStmt.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | global a 3 | global a, b -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/MatMulOperator2.py: -------------------------------------------------------------------------------- 1 | fob = ( 2 | 1 3 | @ 2 4 | ) 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/TrueDivide.py: -------------------------------------------------------------------------------- 1 | from __future__ import division 2 | 3 | 1 / 2 -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/xml/__init__.pyi: -------------------------------------------------------------------------------- 1 | import xml.parsers as parsers 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/http_client.pyi: -------------------------------------------------------------------------------- 1 | from httplib import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/http_cookies.pyi: -------------------------------------------------------------------------------- 1 | from Cookie import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/builtins.pyi: -------------------------------------------------------------------------------- 1 | from builtins import * 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ExecStmt.py: -------------------------------------------------------------------------------- 1 | exec fob 2 | exec fob in oar 3 | exec fob in oar, baz -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/TryStmtV2.py: -------------------------------------------------------------------------------- 1 | try: 2 | pass 3 | except Exception, e: 4 | pass -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/lib2to3/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for lib2to3 (Python 3.6) 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/cryptography/hazmat/primitives/asymmetric/__init__.pyi: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/_dummy_thread.pyi: -------------------------------------------------------------------------------- 1 | from dummy_thread import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/configparser.pyi: -------------------------------------------------------------------------------- 1 | from ConfigParser import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/html_parser.pyi: -------------------------------------------------------------------------------- 1 | from HTMLParser import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/http_cookiejar.pyi: -------------------------------------------------------------------------------- 1 | from cookielib import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/socketserver.pyi: -------------------------------------------------------------------------------- 1 | from SocketServer import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/urllib_error.pyi: -------------------------------------------------------------------------------- 1 | from .urllib.error import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/urllib_parse.pyi: -------------------------------------------------------------------------------- 1 | from .urllib.parse import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/xmlrpc_client.pyi: -------------------------------------------------------------------------------- 1 | from xmlrpclib import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/BaseHTTPServer.pyi: -------------------------------------------------------------------------------- 1 | from http.server import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/CGIHTTPServer.pyi: -------------------------------------------------------------------------------- 1 | from http.server import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/configparser.pyi: -------------------------------------------------------------------------------- 1 | from configparser import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/html_parser.pyi: -------------------------------------------------------------------------------- 1 | from html.parser import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/http_client.pyi: -------------------------------------------------------------------------------- 1 | from http.client import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/http_cookies.pyi: -------------------------------------------------------------------------------- 1 | from http.cookies import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/socketserver.pyi: -------------------------------------------------------------------------------- 1 | from socketserver import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/tkinter_ttk.pyi: -------------------------------------------------------------------------------- 1 | from tkinter.ttk import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/urllib_error.pyi: -------------------------------------------------------------------------------- 1 | from urllib.error import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/urllib_parse.pyi: -------------------------------------------------------------------------------- 1 | from urllib.parse import * 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/DefaultArgument.py: -------------------------------------------------------------------------------- 1 | class A: ... 2 | 3 | def func(a = A()): ... 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AssignStmt25.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | fob = yield 1 3 | fob += yield 1 -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DelStmtIllegal.py: -------------------------------------------------------------------------------- 1 | del 1 2 | del (fob for fob in oar) 3 | del fob(oar) -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FStringEqualsErrors.py: -------------------------------------------------------------------------------- 1 | f"{name=foo}" 2 | f"{bad = a }" 3 | f"{bad *= a }" -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FromImportStmtIncomplete.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | from sys import abc, 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/IncompleteMemberExpr.py: -------------------------------------------------------------------------------- 1 | a. #comment 2 | x = 1 3 | b. 4 | x = 2 5 | c. -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/TryStmtV3.py: -------------------------------------------------------------------------------- 1 | try: 2 | pass 3 | except Exception as e: 4 | pass -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/xml/parsers/__init__.pyi: -------------------------------------------------------------------------------- 1 | import xml.parsers.expat as expat 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/BaseHTTPServer.pyi: -------------------------------------------------------------------------------- 1 | from BaseHTTPServer import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/email_mime_text.pyi: -------------------------------------------------------------------------------- 1 | from email.MIMEText import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/html_entities.pyi: -------------------------------------------------------------------------------- 1 | from htmlentitydefs import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/urllib_robotparser.pyi: -------------------------------------------------------------------------------- 1 | from robotparser import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/SimpleHTTPServer.pyi: -------------------------------------------------------------------------------- 1 | from http.server import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/_dummy_thread.pyi: -------------------------------------------------------------------------------- 1 | from _dummy_thread import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/email_mime_base.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.base import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/email_mime_text.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.text import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/html_entities.pyi: -------------------------------------------------------------------------------- 1 | from html.entities import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/http_cookiejar.pyi: -------------------------------------------------------------------------------- 1 | from http.cookiejar import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/tkinter_dialog.pyi: -------------------------------------------------------------------------------- 1 | from tkinter.dialog import * 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Formatting/elseBlocksFirstLineTab.py: -------------------------------------------------------------------------------- 1 | if True == True: 2 | a = 2 3 | b = 3 4 | else: -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/sqlite3/__init__.pyi: -------------------------------------------------------------------------------- 1 | from sqlite3.dbapi2 import * # noqa: F403 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/SimpleHTTPServer.pyi: -------------------------------------------------------------------------------- 1 | from SimpleHTTPServer import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/__init__.pyi: -------------------------------------------------------------------------------- 1 | def new(*args, **kwargs): ... 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/jinja2/constants.pyi: -------------------------------------------------------------------------------- 1 | LOREM_IPSUM_WORDS = ... # type: str 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/tkinter_constants.pyi: -------------------------------------------------------------------------------- 1 | from tkinter.constants import * 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/LockCount1.py: -------------------------------------------------------------------------------- 1 | import LockCount2 2 | import doestnotexist 3 | y = 1 4 | x. 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Formatting/elseBlocksFirstLine2.py: -------------------------------------------------------------------------------- 1 | if True == True: 2 | a = 2 3 | b = 3 4 | else: -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/InvalidUnicodeLiteral26Up.py: -------------------------------------------------------------------------------- 1 | from __future__ import unicode_literals 2 | '\uTEST' -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/LambdaExpr.py: -------------------------------------------------------------------------------- 1 | lambda x : 1 2 | lambda *x : 1 3 | lambda **x : 1 4 | lambda : 1 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/OSRNG/__init__.pyi: -------------------------------------------------------------------------------- 1 | __revision__ = ... # type: str 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/__init__.pyi: -------------------------------------------------------------------------------- 1 | __version__ = ... # type: bytes 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/email_mime_multipart.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.multipart import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/tkinter_commondialog.pyi: -------------------------------------------------------------------------------- 1 | from tkinter.commondialog import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/tkinter_filedialog.pyi: -------------------------------------------------------------------------------- 1 | from tkinter.filedialog import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/tkinter_tkfiledialog.pyi: -------------------------------------------------------------------------------- 1 | from tkinter.filedialog import * 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/urllib_robotparser.pyi: -------------------------------------------------------------------------------- 1 | from urllib.robotparser import * 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/ReturnAnnotations.pyi: -------------------------------------------------------------------------------- 1 | def f(p : int = ...) -> int: ... 2 | def g() -> str: ... 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Formatting/elseBlocksFirstLine4.py: -------------------------------------------------------------------------------- 1 | if True == True: 2 | a = 2 3 | b = 3 4 | else: -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FromFuture24.py: -------------------------------------------------------------------------------- 1 | from __future__ import division 2 | from __future__ import generators -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/MixedWhitespace5.py: -------------------------------------------------------------------------------- 1 | if True: 2 | print('hello') 3 | if True: 4 | print 'goodbye' -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/WhileStmt.py: -------------------------------------------------------------------------------- 1 | while 1: 2 | pass 3 | 4 | while 1: 5 | pass 6 | else: 7 | pass -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/certifi.pyi: -------------------------------------------------------------------------------- 1 | def where() -> str: ... 2 | def old_where() -> str: ... 3 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/jwt/contrib/algorithms/__init__.pyi: -------------------------------------------------------------------------------- 1 | from hashlib import _Hash as _HashAlg 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/MixedWhitespace4.py: -------------------------------------------------------------------------------- 1 | if True: 2 | print('hello') 3 | if True: 4 | print 'goodbye' -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/email_mime_nonmultipart.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.nonmultipart import * 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FromImportStmtV2.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | from sys import * 3 | 4 | class C: 5 | from sys import * -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/debug.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.debug 2 | 3 | DEBUG = ... # type: bool 4 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/filelist.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.filelist 2 | 3 | class FileList: ... 4 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/docutils/examples.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | html_parts = ... # type: Any 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/BasicEggZip.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import test.a 3 | 4 | a = test.a.A() 5 | i = a.test() 6 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/TopLevelCompletions.py: -------------------------------------------------------------------------------- 1 | x = 1 2 | y = 'a' 3 | z = b'b' 4 | 5 | def f(a): 6 | 7 | pass 8 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FromFuture25.py: -------------------------------------------------------------------------------- 1 | from __future__ import with_statement 2 | from __future__ import absolute_import 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FromFuture26.py: -------------------------------------------------------------------------------- 1 | from __future__ import print_function 2 | from __future__ import unicode_literals 3 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/nturl2path.pyi: -------------------------------------------------------------------------------- 1 | def url2pathname(url: str) -> str: ... 2 | def pathname2url(p: str) -> str: ... 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/InstanceMethod.py: -------------------------------------------------------------------------------- 1 | class C: 2 | def f(self): pass 3 | 4 | f1 = C.f 5 | c = C() 6 | f2 = c.f 7 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ForFinallyContinue.py: -------------------------------------------------------------------------------- 1 | for x in l: 2 | try: 3 | pass 4 | finally: 5 | continue 6 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ListComp.py: -------------------------------------------------------------------------------- 1 | [fob for fob in oar] 2 | [fob for fob in oar if baz] 3 | [fob for fob in oar for baz in quox] -------------------------------------------------------------------------------- /src/UnitTests/TestData/random.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/random.bin -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/urllib/robotparser.pyi: -------------------------------------------------------------------------------- 1 | from robotparser import RobotFileParser as RobotFileParser 2 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pymysql/util.pyi: -------------------------------------------------------------------------------- 1 | def byte2int(b): ... 2 | def int2byte(i): ... 3 | def join_bytes(bs): ... 4 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/jwt/algorithms.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | class Algorithm(Any): ... # type: ignore 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/EggZipRelativeImports.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import a 3 | 4 | h = a.h 5 | i = a.i 6 | s = a.s 7 | 8 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Package-stubs/Module.pyi: -------------------------------------------------------------------------------- 1 | 2 | class Class: 3 | def typed_method(self, a : int) -> float: ... 4 | 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Stubs/Package/Module.pyi: -------------------------------------------------------------------------------- 1 | 2 | class Class: 3 | def typed_method_2(self, a : int) -> float: ... 4 | 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Util/strxor.pyi: -------------------------------------------------------------------------------- 1 | def strxor(*args, **kwargs): ... 2 | def strxor_c(*args, **kwargs): ... 3 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pynamodb/types.pyi: -------------------------------------------------------------------------------- 1 | STRING: str 2 | NUMBER: str 3 | BINARY: str 4 | HASH: str 5 | RANGE: str 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/urllib/robotparser.pyi: -------------------------------------------------------------------------------- 1 | from urllib.robotparser import RobotFileParser as RobotFileParser 2 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AwaitStmtIllegal.py: -------------------------------------------------------------------------------- 1 | await None 2 | 3 | def quox(): 4 | await fob 5 | 6 | class quox: 7 | await fob 8 | 9 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ConditionalExpr.py: -------------------------------------------------------------------------------- 1 | 1 if 2 else 3 2 | 1 if 2else 3 3 | 1if 2else 3 4 | 1.0if 2e10else 3 5 | 1if 2.0else 3 6 | 7 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FStringEquals.py: -------------------------------------------------------------------------------- 1 | f"{name=}" 2 | f"{name =}" 3 | f"{name = }" 4 | f"{foo.bar()=}" 5 | f'{user=!s} {delta.days=:,d}' -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/SetComp.py: -------------------------------------------------------------------------------- 1 | {fob for fob in baz} 2 | {fob for fob in baz if quox} 3 | {fob for fob in baz for quox in Exception} 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/EggZipImports.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import a 3 | 4 | h = a.h 5 | y = a.y 6 | b = a.A() 7 | i = b.test() 8 | 9 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ClassDef3x.py: -------------------------------------------------------------------------------- 1 | class C(metaclass=1): pass 2 | class C(object, metaclass=1): pass 3 | class C(list, object, fob=1): pass 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DelStmt.py: -------------------------------------------------------------------------------- 1 | del fob 2 | del fob, oar 3 | del fob.oar 4 | del fob[oar] 5 | del (fob, oar) 6 | del [fob, oar] 7 | del (fob) -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Signature/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Names in __all__ with no definition: 2 | # PKCS1_PSS 3 | # PKCS1_v1_5 4 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pynamodb/connection/util.pyi: -------------------------------------------------------------------------------- 1 | from typing import Text 2 | 3 | def pythonic(var_name: Text) -> Text: ... 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Imports.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_imports 2 | 3 | from sys import version_info 4 | import a_made_up_module 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/VarAnnotationIllegal.py: -------------------------------------------------------------------------------- 1 | fob, oar: baz 2 | fob: oar, baz 3 | fob, oar: baz = 1 4 | fob: oar, baz = 1 5 | fob: oar = baz = 1 6 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/YieldFromExpr.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | yield from fob 3 | oar = yield from fob 4 | baz = [(yield from oar) for oar in fob] -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/PublicKey/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Names in __all__ with no definition: 2 | # DSA 3 | # ElGamal 4 | # RSA 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/TypingConstants.py: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | ONE = ... # type: Any 4 | TWO = 'a' 5 | 6 | class A: 7 | x = 1 8 | 9 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/GenComp.py: -------------------------------------------------------------------------------- 1 | (fob for fob in oar) 2 | (fob for fob in oar if baz) 3 | (fob for fob in oar for baz in quox) 4 | baz(fob for fob in oar) -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/WithStmt.py: -------------------------------------------------------------------------------- 1 | with fob: pass 2 | 3 | with fob as oar: pass 4 | 5 | with fob, oar: pass 6 | 7 | with fob as oar, baz as quox: pass -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/markupsafe/_constants.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Dict, Text 2 | 3 | HTML_ENTITIES = ... # type: Dict[Text, int] 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Calls.py: -------------------------------------------------------------------------------- 1 | fob() 2 | fob(1) 3 | fob(oar = 1) 4 | fob(*oar) 5 | fob(**oar) 6 | fob(*oar, **baz) 7 | fob(oar = 1, baz = 2) 8 | fob(oar, baz) -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/CoroutineDef.py: -------------------------------------------------------------------------------- 1 | async def f(): 2 | async for fob in oar: 3 | pass 4 | 5 | async with baz: 6 | pass 7 | 8 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/TryStmt.py: -------------------------------------------------------------------------------- 1 | try: 2 | pass 3 | except: 4 | pass 5 | 6 | 7 | try: 8 | pass 9 | except Exception: 10 | pass 11 | -------------------------------------------------------------------------------- /.sonarcloud.properties: -------------------------------------------------------------------------------- 1 | # Path to sources 2 | sonar.sources=src 3 | sonar.exclusions=src/UnitTests,src/TestResults 4 | 5 | # Path to tests 6 | sonar.tests=src/UnitTests 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Protocol/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Names in __all__ with no definition: 2 | # AllOrNothing 3 | # Chaffing 4 | # KDF 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/docutils/parsers/rst/states.pyi: -------------------------------------------------------------------------------- 1 | import typing 2 | 3 | class Inliner: 4 | def __init__(self) -> None: 5 | ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/typed_ast/conversions.pyi: -------------------------------------------------------------------------------- 1 | from . import ast27 2 | from . import ast3 3 | 4 | def py2to3(ast: ast27.AST) -> ast3.AST: ... 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/Basic.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/AstAnalysis/EggZip/Basic.egg -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/Basic.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/AstAnalysis/EggZip/Basic.zip -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Package/Module.py: -------------------------------------------------------------------------------- 1 | 2 | class Class: 3 | def untyped_method(self, a): pass 4 | def inferred_method(self, a = 1): return 3.14 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/TypingConstants.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | ONE = ... # type: Any 4 | TWO = ... # type: Any 5 | 6 | class A: 7 | x: Any 8 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AssignStmtV3.py: -------------------------------------------------------------------------------- 1 | *fob, oar, baz = 1, 2, 3, 4 2 | fob, *oar, baz = 1, 2, 3, 4 3 | [fob, *oar, baz] = 1, 2, 3, 4 4 | [*fob, oar, baz] = 1, 2, 3, 4 -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AsyncFor37.py: -------------------------------------------------------------------------------- 1 | def test1(): 2 | return (fob async for fob in []) 3 | 4 | def test2(): 5 | return (fob for fob in [] if await fob) 6 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DictComp.py: -------------------------------------------------------------------------------- 1 | {fob:oar for fob,oar in baz} 2 | {fob:oar for fob,oar in baz if quox} 3 | {fob:oar for fob,oar in baz for quox in Exception} 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/YieldExpr.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | yield 3 | 4 | def f(): 5 | fob = yield 6 | 7 | def f(): 8 | baz = [(yield oar) for oar in fob] 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/backports/ssl_match_hostname.pyi: -------------------------------------------------------------------------------- 1 | class CertificateError(ValueError): ... 2 | 3 | def match_hostname(cert, hostname): ... 4 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/requests/status_codes.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from .structures import LookupDict 3 | 4 | codes = ... # type: Any 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ImportStmt.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import sys, fob 3 | import sys as oar 4 | import sys as oar, fob as baz 5 | import sys.fob 6 | import sys.fob as oar -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/encodings/__init__.pyi: -------------------------------------------------------------------------------- 1 | import codecs 2 | 3 | import typing 4 | 5 | def search_function(encoding: str) -> codecs.CodecInfo: 6 | ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/xml/etree/cElementTree.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for xml.etree.cElementTree (Python 3.4) 2 | 3 | from xml.etree.ElementTree import * # noqa: F403 4 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/encodings/__init__.pyi: -------------------------------------------------------------------------------- 1 | import codecs 2 | 3 | import typing 4 | 5 | def search_function(encoding: str) -> codecs.CodecInfo: 6 | ... 7 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/EggImports.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/AstAnalysis/EggZip/EggImports.egg -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/ZipImports.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/AstAnalysis/EggZip/ZipImports.zip -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/simplejson.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/AstAnalysis/EggZip/simplejson.egg -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/simplejson.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/AstAnalysis/EggZip/simplejson.zip -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/YieldStmtIllegal.py: -------------------------------------------------------------------------------- 1 | yield 1 2 | 3 | def f(): 4 | return 42 5 | yield 1 6 | 7 | def f(): 8 | yield 1 9 | return 42 10 | 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/atexit.pyi: -------------------------------------------------------------------------------- 1 | from typing import TypeVar, Any 2 | 3 | _FT = TypeVar('_FT') 4 | 5 | def register(func: _FT, *args: Any, **kargs: Any) -> _FT: ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/md5.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for Python 2.7 md5 stdlib module 2 | 3 | from hashlib import md5 as md5, md5 as new 4 | 5 | blocksize = 0 6 | digest_size = 0 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/nturl2path.pyi: -------------------------------------------------------------------------------- 1 | from typing import AnyStr 2 | 3 | def url2pathname(url: AnyStr) -> AnyStr: ... 4 | def pathname2url(p: AnyStr) -> AnyStr: ... 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/ForwardRefGlobalFunc.py: -------------------------------------------------------------------------------- 1 | def func1(): 2 | return func2() 3 | 4 | def func2(): 5 | return func3() 6 | 7 | def func3(): 8 | return 's' 9 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DedentError.py: -------------------------------------------------------------------------------- 1 | class MyForm(Form): 2 | def __init__(object): 3 | pass 4 | def fob(): 5 | pass 6 | 7 | form = MyForm() 8 | 9 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/PositionalOnly.py: -------------------------------------------------------------------------------- 1 | def f(a, b, /, c, d, *, e, f): 2 | pass 3 | 4 | def pow2(x, y, z=None, /): 5 | pass 6 | 7 | def foo(name, /, **kwds): 8 | pass -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/nonmultipart.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.base import MIMEBase 2 | 3 | class MIMENonMultipart(MIMEBase): 4 | def attach(self, payload): ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/concurrent/futures/__init__.pyi: -------------------------------------------------------------------------------- 1 | from ._base import * # noqa: F403 2 | from .thread import * # noqa: F403 3 | from .process import * # noqa: F403 4 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Util/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Names in __all__ with no definition: 2 | # RFC1751 3 | # asn1 4 | # number 5 | # randpool 6 | # strxor 7 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AssignStmtIllegal.py: -------------------------------------------------------------------------------- 1 | fob + oar = 1 2 | fob() = 1 3 | None = 1 4 | 2 = 1 5 | (fob for fob in oar) = 1 6 | fob, oar += 1 7 | def f(): 8 | (yield fob) = 1 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/html/__init__.pyi: -------------------------------------------------------------------------------- 1 | from typing import AnyStr 2 | 3 | def escape(s: AnyStr, quote: bool = ...) -> AnyStr: ... 4 | def unescape(s: AnyStr) -> AnyStr: ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/concurrent/futures/__init__.pyi: -------------------------------------------------------------------------------- 1 | from ._base import * # noqa: F403 2 | from .thread import * # noqa: F403 3 | from .process import * # noqa: F403 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/EggRelativeImports.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/AstAnalysis/EggZip/EggRelativeImports.egg -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/EggZip/ZipRelativeImports.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/python-language-server/HEAD/src/UnitTests/TestData/AstAnalysis/EggZip/ZipRelativeImports.zip -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/ReturnAnnotation.py: -------------------------------------------------------------------------------- 1 | from typing import Union, Iterable, Type 2 | 3 | def namedtuple(typename: str, field_names: Union[str, Iterable[str]]) -> Type[tuple]: ... 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AwaitStmt.py: -------------------------------------------------------------------------------- 1 | async def quox(): 2 | await fob 3 | await fob() 4 | (await fob)() 5 | 1 + await fob 6 | 1 ** await fob 7 | 1 ** -await fob 8 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/IfStmt.py: -------------------------------------------------------------------------------- 1 | if 1: 2 | pass 3 | 4 | 5 | if 1: 6 | pass 7 | elif 2: 8 | pass 9 | 10 | 11 | if 1: 12 | pass 13 | else: 14 | pass 15 | 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/distutils/emxccompiler.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for emxccompiler 2 | 3 | from distutils.unixccompiler import UnixCCompiler 4 | 5 | class EMXCCompiler(UnixCCompiler): ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/base.pyi: -------------------------------------------------------------------------------- 1 | from email import message 2 | 3 | class MIMEBase(message.Message): 4 | def __init__(self, _maintype, _subtype, **_params) -> None: ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/importlib.pyi: -------------------------------------------------------------------------------- 1 | import types 2 | from typing import Optional, Text 3 | 4 | def import_module(name: Text, package: Optional[Text] = ...) -> types.ModuleType: ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/typed_ast/__init__.pyi: -------------------------------------------------------------------------------- 1 | # This module is a fork of the CPython 2 and 3 ast modules with PEP 484 support. 2 | # See: https://github.com/python/typed_ast 3 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ClassDef.py: -------------------------------------------------------------------------------- 1 | class C: pass 2 | class C(object): pass 3 | class C(list, object): pass 4 | 5 | class C: 6 | class __D: 7 | class __E: 8 | pass 9 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Errors35.py: -------------------------------------------------------------------------------- 1 | (*() for x in []) 2 | (*(), ) 3 | {**{2:3}, *{}} 4 | (*()) 5 | {*{}, **{}} 6 | {**{}, *{}} 7 | f(**[], *[]) 8 | {**{}, 42} 9 | {35, **{}} 10 | {** 2:3} -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Names in __all__ with no definition: 2 | # Cipher 3 | # Hash 4 | # Protocol 5 | # PublicKey 6 | # Signature 7 | # Util 8 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DecoratorsClassDef.py: -------------------------------------------------------------------------------- 1 | @fob 2 | class C: pass 3 | 4 | @fob.oar 5 | class C: pass 6 | 7 | 8 | @fob(oar) 9 | class C: pass 10 | 11 | @fob 12 | @oar 13 | class C: pass -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/bcppcompiler.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.bcppcompiler 2 | 3 | from distutils.ccompiler import CCompiler 4 | 5 | 6 | class BCPPCompiler(CCompiler): ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/msvccompiler.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.msvccompiler 2 | 3 | from distutils.ccompiler import CCompiler 4 | 5 | 6 | class MSVCCompiler(CCompiler): ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/unixccompiler.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.unixccompiler 2 | 3 | from distutils.ccompiler import CCompiler 4 | 5 | 6 | class UnixCCompiler(CCompiler): ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/nonmultipart.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.nonmultipart (Python 3.4) 2 | 3 | from email.mime.base import MIMEBase 4 | 5 | class MIMENonMultipart(MIMEBase): ... 6 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/PrintStmt.py: -------------------------------------------------------------------------------- 1 | print 2 | print 1 3 | print 1, 4 | print 1, 2 5 | print 1, 2, 6 | print >>fob, 1, 2 7 | print >>fob, 1, 2, 8 | print >>fob 9 | print 1 == 2 10 | print lambda: 1 -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/encoders.pyi: -------------------------------------------------------------------------------- 1 | def encode_base64(msg) -> None: ... 2 | def encode_quopri(msg) -> None: ... 3 | def encode_7or8bit(msg) -> None: ... 4 | def encode_noop(msg) -> None: ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/requests/compat.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for requests.compat (Python 3.4) 2 | 3 | from typing import Any 4 | import collections 5 | 6 | OrderedDict = collections.OrderedDict 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/whichdb.pyi: -------------------------------------------------------------------------------- 1 | # Source: https://hg.python.org/cpython/file/2.7/Lib/whichdb.py 2 | 3 | from typing import Optional, Text 4 | 5 | def whichdb(filename: Text) -> Optional[str]: ... 6 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Base.py: -------------------------------------------------------------------------------- 1 | class A: 2 | def methodABase(self, x): 3 | return x 4 | 5 | class B: 6 | def methodBBase(self, x): 7 | return x 8 | 9 | a = A 10 | b = B 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/keyword.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for keyword 2 | 3 | from typing import Sequence, Text, Union 4 | 5 | def iskeyword(s: Union[Text, bytes]) -> bool: ... 6 | kwlist = ... # type: Sequence[str] 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/html/entities.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | name2codepoint = ... # type: Any 4 | html5 = ... # type: Any 5 | codepoint2name = ... # type: Any 6 | entitydefs = ... # type: Any 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pynamodb/connection/__init__.pyi: -------------------------------------------------------------------------------- 1 | from pynamodb.connection.base import Connection as Connection 2 | from pynamodb.connection.table import TableConnection as TableConnection 3 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/MIMEText.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.nonmultipart import MIMENonMultipart 2 | 3 | class MIMEText(MIMENonMultipart): 4 | def __init__(self, _text, _subtype=..., _charset=...) -> None: ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/message.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.nonmultipart import MIMENonMultipart 2 | 3 | 4 | class MIMEMessage(MIMENonMultipart): 5 | def __init__(self, _msg, _subtype=...) -> None: ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/multiprocessing/process.pyi: -------------------------------------------------------------------------------- 1 | from typing import List 2 | from multiprocessing import Process 3 | 4 | def current_process() -> Process: ... 5 | def active_children() -> List[Process]: ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/cryptography/hazmat/primitives/asymmetric/dsa.pyi: -------------------------------------------------------------------------------- 1 | # Minimal stub expressing only the classes required by OpenSSL.crypto. 2 | 3 | class DSAPrivateKey: ... 4 | class DSAPublicKey: ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/cryptography/hazmat/primitives/asymmetric/rsa.pyi: -------------------------------------------------------------------------------- 1 | # Minimal stub expressing only the classes required by OpenSSL.crypto. 2 | 3 | class RSAPrivateKey: ... 4 | class RSAPublicKey: ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/urllib/error.pyi: -------------------------------------------------------------------------------- 1 | from urllib2 import URLError as URLError 2 | from urllib2 import HTTPError as HTTPError 3 | from urllib import ContentTooShortError as ContentTooShortError 4 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/OSRNG/fallback.pyi: -------------------------------------------------------------------------------- 1 | from .rng_base import BaseRNG 2 | 3 | class PythonOSURandomRNG(BaseRNG): 4 | name = ... # type: str 5 | def __init__(self) -> None: ... 6 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/GenUnpack.py: -------------------------------------------------------------------------------- 1 | fob(*[1], *[2], 3) 2 | 3 | fob(**{"x": 1}, y=2, **{"z": 3}) 4 | 5 | *fob(4), 4 6 | [*fob(4), 4] 7 | {*fob(4), 4} 8 | {"x": 1, **{"y": 2}} 9 | {**{"x": 2}, "x": 1} 10 | 11 | {*[]} -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/MixedWhitespace6.py: -------------------------------------------------------------------------------- 1 | if True: 2 | print('hello') 3 | # "Matched" 4 | print('goodbye') 5 | 6 | if True: 7 | print('hello') 8 | # "Mismatched" 9 | print('goodbye') 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/text.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.nonmultipart import MIMENonMultipart 2 | 3 | class MIMEText(MIMENonMultipart): 4 | def __init__(self, _text, _subtype=..., _charset=...) -> None: ... 5 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AssignStmt.py: -------------------------------------------------------------------------------- 1 | fob[1] = 2 2 | fob.oar = 1 3 | fob = 1 4 | (fob) = 1 5 | (fob, oar) = 1, 2 6 | fob, oar = 1, 2 7 | fob, oar = baz 8 | [fob, oar] = 1, 2 9 | [fob, oar] = baz 10 | fob = oar = baz 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/multipart.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.base import MIMEBase 2 | 3 | class MIMEMultipart(MIMEBase): 4 | def __init__(self, _subtype=..., boundary=..., _subparts=..., **_params) -> None: ... 5 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/redis/utils.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | HIREDIS_AVAILABLE = ... # type: Any 4 | 5 | def from_url(url, db=..., **kwargs): ... 6 | def pipeline(redis_obj): ... 7 | 8 | class dummy: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/kms/__init__.pyi: -------------------------------------------------------------------------------- 1 | from typing import List 2 | import boto.regioninfo 3 | 4 | def regions() -> List[boto.regioninfo.RegionInfo]: ... 5 | def connect_to_region(region_name, **kw_params): ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pynamodb/settings.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | log: Any 4 | default_settings_dict: Any 5 | OVERRIDE_SETTINGS_PATH: Any 6 | override_settings: Any 7 | 8 | def get_settings_value(key): ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/urllib/error.pyi: -------------------------------------------------------------------------------- 1 | from urllib.error import URLError as URLError 2 | from urllib.error import HTTPError as HTTPError 3 | from urllib.error import ContentTooShortError as ContentTooShortError 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Values.py: -------------------------------------------------------------------------------- 1 | x = 1 2 | y = 'a' 3 | z = b'b' 4 | pi = 3.1415 5 | l = [] 6 | t = () 7 | d = {} 8 | s = {1} 9 | 10 | X = x 11 | Y = y 12 | Z = z 13 | PI = pi 14 | L = l 15 | T = t 16 | D = d 17 | S = s 18 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DecoratorsFuncDef.py: -------------------------------------------------------------------------------- 1 | @fob 2 | def f(): 3 | pass 4 | 5 | @fob.oar 6 | def f(): 7 | pass 8 | 9 | @fob(oar) 10 | def f(): 11 | pass 12 | 13 | 14 | @fob 15 | @oar 16 | def f(): 17 | pass 18 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FuncDefTrailingComma.py: -------------------------------------------------------------------------------- 1 | def f(a,): 2 | pass 3 | 4 | def f(a, *b,): 5 | pass 6 | 7 | def f(a, *b, **c, ): 8 | pass 9 | 10 | def f(*a,): 11 | pass 12 | 13 | def f(**a, ): 14 | pass 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/htmlentitydefs.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Mapping 2 | 3 | name2codepoint = ... # type: Mapping[str, int] 4 | codepoint2name = ... # type: Mapping[int, str] 5 | entitydefs = ... # type: Mapping[str, str] 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/audio.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.nonmultipart import MIMENonMultipart 2 | 3 | 4 | class MIMEAudio(MIMENonMultipart): 5 | def __init__(self, _audiodata, _subtype=..., _encoder=..., **_params) -> None: ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/image.pyi: -------------------------------------------------------------------------------- 1 | from email.mime.nonmultipart import MIMENonMultipart 2 | 3 | 4 | class MIMEImage(MIMENonMultipart): 5 | def __init__(self, _imagedata, _subtype=..., _encoder=..., **_params) -> None: ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Protocol/Chaffing.pyi: -------------------------------------------------------------------------------- 1 | __revision__ = ... # type: str 2 | 3 | class Chaff: 4 | def __init__(self, factor: float = ..., blocksper: int = ...) -> None: ... 5 | def chaff(self, blocks): ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/dist.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.dist 2 | 3 | from typing import Any, Mapping, Optional 4 | 5 | 6 | class Distribution: 7 | def __init__(self, attrs: Optional[Mapping[str, Any]] = ...) -> None: ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/attr/converters.pyi: -------------------------------------------------------------------------------- 1 | from typing import TypeVar, Optional 2 | from . import _ConverterType 3 | 4 | _T = TypeVar('_T') 5 | 6 | def optional(converter: _ConverterType[_T]) -> _ConverterType[Optional[_T]]: ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/internal/message_listener.pyi: -------------------------------------------------------------------------------- 1 | class MessageListener(object): 2 | def Modified(self) -> None: ... 3 | 4 | class NullMessageListener(MessageListener): 5 | def Modified(self) -> None: ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Names in __all__ with no definition: 2 | # HMAC 3 | # MD2 4 | # MD4 5 | # MD5 6 | # RIPEMD 7 | # SHA 8 | # SHA224 9 | # SHA256 10 | # SHA384 11 | # SHA512 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Names in __all__ with no definition: 2 | # AES 3 | # ARC2 4 | # ARC4 5 | # Blowfish 6 | # CAST 7 | # DES 8 | # DES3 9 | # PKCS1_OAEP 10 | # PKCS1_v1_5 11 | # XOR 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/requests/hooks.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for requests.hooks (Python 3) 2 | 3 | from typing import Any 4 | 5 | HOOKS = ... # type: Any 6 | 7 | def default_hooks(): ... 8 | def dispatch_hook(key, hooks, hook_data, **kwargs): ... 9 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/ForwardRefFunc1.py: -------------------------------------------------------------------------------- 1 | class A(object): 2 | def methodA(self): 3 | return 's' 4 | 5 | class B(object): 6 | def getA(self): 7 | return self.funcA() 8 | 9 | def funcA(self): 10 | return A() 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Stubs/third_party/2and3/numpy/__init__.pyi: -------------------------------------------------------------------------------- 1 | from numpy.core._multiarray_umath import * 2 | 3 | arange.__module__ = 'numpy' 4 | array.__module__ = 'numpy' 5 | dtype.__module__ = 'numpy' 6 | empty.__module__ = 'numpy' 7 | ndarray.__module__ = 'numpy' 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/getpass.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for getpass (Python 2) 2 | 3 | from typing import Any, IO 4 | 5 | class GetPassWarning(UserWarning): ... 6 | 7 | def getpass(prompt: str = ..., stream: IO[Any] = ...) -> str: ... 8 | def getuser() -> str: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/ctypes/util.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for ctypes.util 2 | 3 | from typing import Optional 4 | import sys 5 | 6 | def find_library(name: str) -> Optional[str]: ... 7 | if sys.platform == 'win32': 8 | def find_msvcrt() -> Optional[str]: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/msvcrt.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for msvcrt 2 | 3 | # NOTE: These are incomplete! 4 | 5 | from typing import overload, BinaryIO, TextIO 6 | 7 | def get_osfhandle(file: int) -> int: ... 8 | def open_osfhandle(handle: int, flags: int) -> int: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/attr/filters.pyi: -------------------------------------------------------------------------------- 1 | from typing import Union 2 | from . import Attribute, _FilterType 3 | 4 | def include(*what: Union[type, Attribute]) -> _FilterType: ... 5 | def exclude(*what: Union[type, Attribute]) -> _FilterType: ... 6 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/DecoratorsAsyncFuncDef.py: -------------------------------------------------------------------------------- 1 | @fob 2 | async def f(): 3 | pass 4 | 5 | @fob.oar 6 | async def f(): 7 | pass 8 | 9 | @fob(oar) 10 | async def f(): 11 | pass 12 | 13 | 14 | @fob 15 | @oar 16 | async def f(): 17 | pass 18 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/YieldFromStmtIllegal.py: -------------------------------------------------------------------------------- 1 | yield from 1 2 | 3 | def f(): 4 | return 42 5 | yield from 1 6 | 7 | def f(): 8 | yield from 1 9 | return 42 10 | 11 | def f(): 12 | yield from 13 | 14 | def f(): 15 | yield from 1, 2, 3 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | output/ 2 | packages/ 3 | TestResults/ 4 | src/.idea/ 5 | 6 | 7 | # Databases 8 | *.sdf 9 | *.opensdf 10 | 11 | 12 | # VS Configs files/folders 13 | *.suo 14 | *.vspscc 15 | *.user 16 | *.ipch 17 | .vs 18 | 19 | 20 | # Mercurial root directory 21 | .hg 22 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/bdist_msi.pyi: -------------------------------------------------------------------------------- 1 | from distutils.cmd import Command 2 | 3 | class bdist_msi(Command): 4 | def initialize_options(self) -> None: ... 5 | def finalize_options(self) -> None: ... 6 | def run(self) -> None: ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/cygwinccompiler.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.cygwinccompiler 2 | 3 | from distutils.unixccompiler import UnixCCompiler 4 | 5 | 6 | class CygwinCCompiler(UnixCCompiler): ... 7 | class Mingw32CCompiler(CygwinCCompiler): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/ec2/__init__.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | RegionData = ... # type: Any 4 | 5 | def regions(**kw_params): ... 6 | def connect_to_region(region_name, **kw_params): ... 7 | def get_region(region_name, **kw_params): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/filesystem.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | has_likely_buggy_unicode_filesystem = ... # type: Any 4 | 5 | class BrokenFilesystemWarning(RuntimeWarning, UnicodeWarning): ... 6 | 7 | def get_filesystem_encoding(): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/iterators.pyi: -------------------------------------------------------------------------------- 1 | from typing import Generator 2 | 3 | def walk(self) -> Generator: ... 4 | def body_line_iterator(msg, decode: bool = ...) -> Generator: ... 5 | def typed_subpart_iterator(msg, maintype=..., subtype=...) -> Generator: ... 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Signature/PKCS1_v1_5.pyi: -------------------------------------------------------------------------------- 1 | class PKCS115_SigScheme: 2 | def __init__(self, key) -> None: ... 3 | def can_sign(self): ... 4 | def sign(self, mhash): ... 5 | def verify(self, mhash, S): ... 6 | 7 | def new(key): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Util/RFC1751.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | __revision__ = ... # type: str 4 | binary = ... # type: Any 5 | 6 | def key_to_english(key): ... 7 | def english_to_key(s): ... 8 | 9 | wordlist = ... # type: Any 10 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/ForwardRefProp1.py: -------------------------------------------------------------------------------- 1 | class A(object): 2 | def methodA(self): 3 | return 's' 4 | 5 | class B(object): 6 | def getA(self): 7 | return self.propA 8 | 9 | @property 10 | def propA(self): 11 | return A() 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/OSRNG/posix.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from .rng_base import BaseRNG 3 | 4 | class DevURandomRNG(BaseRNG): 5 | name = ... # type: str 6 | def __init__(self, devname: Optional[Any] = ...) -> None: ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/urllib/response.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for six.moves.urllib.response 2 | from urllib import addbase as addbase 3 | from urllib import addclosehook as addclosehook 4 | from urllib import addinfo as addinfo 5 | from urllib import addinfourl as addinfourl 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Util/Counter.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | def new(nbits, prefix: Any = ..., suffix: Any = ..., initial_value: int = ..., overflow: int = ..., little_endian: bool = ..., allow_wraparound: bool = ..., disable_shortcut: bool = ...): ... 4 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/MultiValues.py: -------------------------------------------------------------------------------- 1 | from Values import x, y, z 2 | l = [] 3 | t = () 4 | s = {1} 5 | 6 | XY = x 7 | XY = y 8 | XYZ = z 9 | XYZ = XY 10 | 11 | D = l 12 | D = t 13 | D = s 14 | D = s # ensure multiple assignments do not clear it 15 | from Values import D 16 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/RawBytes.py: -------------------------------------------------------------------------------- 1 | rb'\fob' 2 | rb'''\fob''' 3 | rb"\fob" 4 | rb"""\fob""" 5 | Rb'\fob' 6 | Rb'''\fob''' 7 | Rb"\fob" 8 | Rb"""\fob""" 9 | rB'\fob' 10 | rB'''\fob''' 11 | rB"\fob" 12 | rB"""\fob""" 13 | RB'\fob' 14 | RB'''\fob''' 15 | RB"\fob" 16 | RB"""\fob""" 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/lib2to3/pgen2/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for lib2to3.pgen2 (Python 3.6) 2 | 3 | import os 4 | import sys 5 | from typing import Text, Union 6 | 7 | if sys.version_info >= (3, 6): 8 | _Path = Union[Text, os.PathLike] 9 | else: 10 | _Path = Text 11 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/ReturnValues.py: -------------------------------------------------------------------------------- 1 | def r_a(a, b): 2 | return a 3 | 4 | def r_b(a, b): 5 | return b 6 | 7 | def r_str(): 8 | return '' 9 | 10 | def r_object(): 11 | return object() 12 | 13 | class A: 14 | def r_A(self): 15 | return type(self)() 16 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Literals36.py: -------------------------------------------------------------------------------- 1 | 10_000_000.0 2 | 0xCAFE_F00D 3 | 0b_0011_1111_0100_1110 4 | 0b_1111_0000 5 | _1 6 | 1_0 7 | 1_0e0_1 8 | 1_0e_1 9 | 1_e1 10 | 3_.14 11 | 3._14 12 | 3.1_4 13 | 3.14_ 14 | 0x_CAFE_F00D 15 | 0xCAFE_F00D_ 16 | 0o_777 17 | 0o7_77 18 | 0o77_7 19 | 0o777_ 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/robotparser.pyi: -------------------------------------------------------------------------------- 1 | class RobotFileParser: 2 | def set_url(self, url: str): ... 3 | def read(self): ... 4 | def parse(self, lines: str): ... 5 | def can_fetch(self, user_agent: str, url: str): ... 6 | def mtime(self): ... 7 | def modified(self): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/six/moves/urllib/__init__.pyi: -------------------------------------------------------------------------------- 1 | import six.moves.urllib.error as error 2 | import six.moves.urllib.parse as parse 3 | import six.moves.urllib.request as request 4 | import six.moves.urllib.response as response 5 | import six.moves.urllib.robotparser as robotparser 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/urllib/__init__.pyi: -------------------------------------------------------------------------------- 1 | import six.moves.urllib.error as error 2 | import six.moves.urllib.parse as parse 3 | import six.moves.urllib.request as request 4 | import six.moves.urllib.response as response 5 | import six.moves.urllib.robotparser as robotparser 6 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/getpass.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for getpass 2 | 3 | from typing import Optional, TextIO 4 | 5 | 6 | def getpass(prompt: str = ..., stream: Optional[TextIO] = ...) -> str: ... 7 | 8 | 9 | def getuser() -> str: ... 10 | 11 | 12 | class GetPassWarning(UserWarning): ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/posixemulation.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from ._compat import to_unicode as to_unicode 3 | from .filesystem import get_filesystem_encoding as get_filesystem_encoding 4 | 5 | can_rename_open_file = ... # type: Any 6 | 7 | def rename(src, dst): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/pyexpat/model.pyi: -------------------------------------------------------------------------------- 1 | XML_CTYPE_ANY: int 2 | XML_CTYPE_CHOICE: int 3 | XML_CTYPE_EMPTY: int 4 | XML_CTYPE_MIXED: int 5 | XML_CTYPE_NAME: int 6 | XML_CTYPE_SEQ: int 7 | 8 | XML_CQUANT_NONE: int 9 | XML_CQUANT_OPT: int 10 | XML_CQUANT_PLUS: int 11 | XML_CQUANT_REP: int 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/docutils/nodes.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, List 2 | 3 | class reference: 4 | def __init__(self, 5 | rawsource: str = ..., 6 | text: str = ..., 7 | *children: List[Any], 8 | **attributes) -> None: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/contrib/limiter.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | class StreamLimitMiddleware: 4 | app = ... # type: Any 5 | maximum_size = ... # type: Any 6 | def __init__(self, app, maximum_size=...): ... 7 | def __call__(self, environ, start_response): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/lib2to3/pgen2/literals.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for lib2to3.pgen2.literals (Python 3.6) 2 | 3 | from typing import Dict, Match, Text 4 | 5 | simple_escapes: Dict[Text, Text] 6 | 7 | def escape(m: Match) -> Text: ... 8 | def evalString(s: Text) -> Text: ... 9 | def test() -> None: ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/xml/parsers/expat/model.pyi: -------------------------------------------------------------------------------- 1 | XML_CTYPE_ANY: int 2 | XML_CTYPE_CHOICE: int 3 | XML_CTYPE_EMPTY: int 4 | XML_CTYPE_MIXED: int 5 | XML_CTYPE_NAME: int 6 | XML_CTYPE_SEQ: int 7 | 8 | XML_CQUANT_NONE: int 9 | XML_CQUANT_OPT: int 10 | XML_CQUANT_PLUS: int 11 | XML_CQUANT_REP: int 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/message.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.message (Python 3.4) 2 | 3 | from email.message import Message 4 | from email.mime.nonmultipart import MIMENonMultipart 5 | 6 | class MIMEMessage(MIMENonMultipart): 7 | def __init__(self, _msg: Message, _subtype: str = ...) -> None: ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/reflection.pyi: -------------------------------------------------------------------------------- 1 | class GeneratedProtocolMessageType(type): 2 | def __new__(cls, name, bases, dictionary): ... 3 | def __init__(cls, name, bases, dictionary) -> None: ... 4 | 5 | def ParseMessage(descriptor, byte_str): ... 6 | def MakeClass(descriptor): ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/simplejson/decoder.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Match 2 | 3 | class JSONDecoder(object): 4 | def __init__(self, **kwargs): ... 5 | def decode(self, s: str, _w: Match[str], _PY3: bool): ... 6 | def raw_decode(self, s: str, idx: int, _w: Match[str], _PY3: bool): ... 7 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FuncDef.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | pass 3 | 4 | def f(a): 5 | pass 6 | 7 | def f(a, *b): 8 | pass 9 | 10 | def f(a, *b, **c): 11 | pass 12 | 13 | def f(*a): 14 | pass 15 | 16 | def f(**a): 17 | pass 18 | 19 | def f(): 20 | return 1 21 | 22 | def f(): 23 | return -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FuncDefV3.py: -------------------------------------------------------------------------------- 1 | def f(*a, x): pass 2 | def f(*a, x = 1): pass 3 | 4 | def f(a: 1): pass 5 | def f(*a: 1): pass 6 | def f(**a: 1): pass 7 | def f(a: 0, *b: 1, **c: 2): pass 8 | 9 | def f() -> 1: pass 10 | 11 | def f(a: 1) -> 1: pass 12 | 13 | def f(a: 1 = 2): pass 14 | 15 | def f(*, a): pass -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/VarAnnotation.py: -------------------------------------------------------------------------------- 1 | fob : oar 2 | fob : oar = 1 3 | fob[1] : oar 4 | fob.oar : baz 5 | 6 | class C: 7 | fob : oar 8 | fob : oar = 1 9 | fob[1] : oar 10 | fob.oar : baz 11 | 12 | def f(): 13 | fob : oar 14 | fob : oar = 1 15 | fob[1] : oar 16 | fob.oar : baz 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/user.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for user (Python 2) 2 | 3 | # Docs: https://docs.python.org/2/library/user.html 4 | # Source: https://hg.python.org/cpython/file/2.7/Lib/user.py 5 | from typing import Any 6 | 7 | def __getattr__(name) -> Any: ... # type: ignore 8 | home: str 9 | pythonrc: str 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/marshal.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, IO 2 | 3 | version = ... # type: int 4 | 5 | def dump(value: Any, file: IO[Any], version: int = ...) -> None: ... 6 | def load(file: IO[Any]) -> Any: ... 7 | def dumps(value: Any, version: int = ...) -> str: ... 8 | def loads(string: str) -> Any: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/empty_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | 5 | 6 | class Empty(Message): 7 | 8 | def __init__(self, 9 | ) -> None: ... 10 | 11 | @classmethod 12 | def FromString(cls, s: bytes) -> Empty: ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/contrib/testtools.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from werkzeug.wrappers import Response 3 | 4 | class ContentAccessors: 5 | def xml(self): ... 6 | def lxml(self): ... 7 | def json(self): ... 8 | 9 | class TestResponse(Response, ContentAccessors): ... 10 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/CoroutineDefIllegal.py: -------------------------------------------------------------------------------- 1 | async def f(): 2 | yield True 3 | x = yield True 4 | 5 | def f(): 6 | async for fob in oar: 7 | pass 8 | 9 | async for fob in oar: 10 | pass 11 | 12 | def f(): 13 | async with baz: 14 | pass 15 | 16 | async with baz: 17 | pass 18 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FromImportStmt.py: -------------------------------------------------------------------------------- 1 | from sys import winver 2 | from sys import winver as baz 3 | from sys.fob import winver 4 | from sys.fob import winver as baz 5 | from ...fob import oar 6 | from ....fob import oar 7 | from ......fob import oar 8 | from .......fob import oar 9 | from fob import (fob as oar, baz as quox) -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature-request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature Request 3 | about: Suggest an idea for this project. 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pymysql/times.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | Date = ... # type: Any 4 | Time = ... # type: Any 5 | TimeDelta = ... # type: Any 6 | Timestamp = ... # type: Any 7 | 8 | def DateFromTicks(ticks): ... 9 | def TimeFromTicks(ticks): ... 10 | def TimestampFromTicks(ticks): ... 11 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/ForStmt.py: -------------------------------------------------------------------------------- 1 | for fob in oar: pass 2 | 3 | for fob, oar in baz: pass 4 | 5 | for fob in oar: 6 | pass 7 | else: 8 | pass 9 | 10 | for fob in oar: 11 | break 12 | 13 | for fob in oar: 14 | continue 15 | 16 | for [[fob], [oar]] in baz: pass 17 | 18 | for ((fob), (oar)) in baz: pass -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/encoders.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.encoders (Python 3.4) 2 | 3 | from email.message import Message 4 | 5 | def encode_base64(msg: Message) -> None: ... 6 | def encode_quopri(msg: Message) -> None: ... 7 | def encode_7or8bit(msg: Message) -> None: ... 8 | def encode_noop(msg: Message) -> None: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/attr/exceptions.pyi: -------------------------------------------------------------------------------- 1 | class FrozenInstanceError(AttributeError): 2 | msg: str = ... 3 | class AttrsAttributeNotFoundError(ValueError): ... 4 | class NotAnAttrsClassError(ValueError): ... 5 | class DefaultAlreadySetError(RuntimeError): ... 6 | class UnannotatedAttributeError(RuntimeError): ... 7 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AsyncFor.py: -------------------------------------------------------------------------------- 1 | async def f(): 2 | [fob async for fob in oar] 3 | (fob async for fob in oar) 4 | {fob async for fob in oar} 5 | {fob: fob async for fob in oar} 6 | [fob for fob in oar async for oar in baz] 7 | (fob for fob in oar async for oar in baz) 8 | [await fob async for fob in oar] 9 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/NamedExpressionsErrors.py: -------------------------------------------------------------------------------- 1 | a := 1 + 1 2 | lambda: x := 1 3 | x = x := 0 4 | def foo(answer: p := 42 = 5): 5 | pass 6 | 7 | a = Object() 8 | (a[0] := 1) 9 | (a.x := 1) 10 | def f(x): 11 | return 1 12 | f(x = a := 1) 13 | 14 | def foo2(answer = p := 42): 15 | pass 16 | 17 | (x := x := x) 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/__init__.pyi: -------------------------------------------------------------------------------- 1 | from typing import IO, Any, AnyStr 2 | 3 | def message_from_string(s: AnyStr, *args, **kwargs): ... 4 | def message_from_bytes(s: str, *args, **kwargs): ... 5 | def message_from_file(fp: IO[AnyStr], *args, **kwargs): ... 6 | def message_from_binary_file(fp: IO[str], *args, **kwargs): ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/future_builtins.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | from itertools import ifilter as filter 4 | from itertools import imap as map 5 | from itertools import izip as zip 6 | 7 | 8 | def ascii(obj: Any) -> str: ... 9 | 10 | 11 | def hex(x: int) -> str: ... 12 | 13 | 14 | def oct(x: int) -> str: ... 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/_markupbase.pyi: -------------------------------------------------------------------------------- 1 | from typing import Tuple 2 | 3 | class ParserBase: 4 | def __init__(self) -> None: ... 5 | def error(self, message: str) -> None: ... 6 | def reset(self) -> None: ... 7 | def getpos(self) -> Tuple[int, int]: ... 8 | 9 | def unkown_decl(self, data: str) -> None: ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/markupsafe/_native.pyi: -------------------------------------------------------------------------------- 1 | from . import Markup 2 | from ._compat import text_type, string_types 3 | from typing import Union, Text 4 | 5 | def escape(s: Union[Markup, Text]) -> Markup: ... 6 | def escape_silent(s: Union[None, Markup, Text]) -> Markup: ... 7 | def soft_unicode(s: Text) -> text_type: ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/markupsafe/_speedups.pyi: -------------------------------------------------------------------------------- 1 | from . import Markup 2 | from ._compat import text_type, string_types 3 | from typing import Union, Text 4 | 5 | def escape(s: Union[Markup, Text]) -> Markup: ... 6 | def escape_silent(s: Union[None, Markup, Text]) -> Markup: ... 7 | def soft_unicode(s: Text) -> text_type: ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/plugin.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class Plugin: 4 | capability = ... # type: Any 5 | @classmethod 6 | def is_capable(cls, requested_capability): ... 7 | 8 | def get_plugin(cls, requested_capability: Optional[Any] = ...): ... 9 | def load_plugins(config): ... 10 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Delimiters.py: -------------------------------------------------------------------------------- 1 | 1(2) 2 | 1[2] 3 | {1:2} 4 | 1, 2, 3 5 | 1[2:3] 6 | 1[2:3:4] 7 | 1[2::4] 8 | 1[::4] 9 | 1[...] 10 | 1[:,] 11 | fob.oar 12 | fob = 1 13 | fob += 1 14 | fob -= 1 15 | fob *= 1 16 | fob /= 1 17 | fob //= 1 18 | fob %= 1 19 | fob &= 1 20 | fob |= 1 21 | fob ^= 1 22 | fob >>= 1 23 | fob <<= 1 24 | fob **= 1 25 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/markupbase.pyi: -------------------------------------------------------------------------------- 1 | from typing import Tuple 2 | 3 | class ParserBase(object): 4 | def __init__(self) -> None: ... 5 | def error(self, message: str) -> None: ... 6 | def reset(self) -> None: ... 7 | def getpos(self) -> Tuple[int, int]: ... 8 | 9 | def unkown_decl(self, data: str) -> None: ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/text.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.text (Python 3.4) 2 | 3 | from typing import Optional 4 | from email.mime.nonmultipart import MIMENonMultipart 5 | 6 | class MIMEText(MIMENonMultipart): 7 | def __init__(self, _text: str, _subtype: str = ..., 8 | _charset: Optional[str] = ...) -> None: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/testapp.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from werkzeug.wrappers import BaseRequest as Request, BaseResponse as Response 3 | 4 | logo = ... # type: Any 5 | TEMPLATE = ... # type: Any 6 | 7 | def iter_sys_path(): ... 8 | def render_testapp(req): ... 9 | def test_app(environ, start_response): ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3.4/asyncio/coroutines.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Callable, Generator, List, TypeVar 2 | 3 | __all__: List[str] 4 | 5 | _F = TypeVar('_F', bound=Callable[..., Any]) 6 | 7 | def coroutine(func: _F) -> _F: ... 8 | def iscoroutinefunction(func: Callable[..., Any]) -> bool: ... 9 | def iscoroutine(obj: Any) -> bool: ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/tkinter/commondialog.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Mapping, Optional 2 | 3 | class Dialog: 4 | command: Optional[Any] = ... 5 | master: Optional[Any] = ... 6 | options: Mapping[str, Any] = ... 7 | def __init__(self, master: Optional[Any] = ..., **options) -> None: ... 8 | def show(self, **options) -> Any: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/sha.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for Python 2.7 sha stdlib module 2 | 3 | class sha(object): 4 | def update(self, arg: str) -> None: ... 5 | def digest(self) -> str: ... 6 | def hexdigest(self) -> str: ... 7 | def copy(self) -> sha: ... 8 | 9 | def new(string: str = ...) -> sha: ... 10 | blocksize = 0 11 | digest_size = 0 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/glob.pyi: -------------------------------------------------------------------------------- 1 | from typing import List, Iterator, Union, AnyStr 2 | 3 | def glob(pathname: AnyStr) -> List[AnyStr]: ... 4 | def iglob(pathname: AnyStr) -> Iterator[AnyStr]: ... 5 | def glob1(dirname: Union[str, unicode], pattern: AnyStr) -> List[AnyStr]: ... 6 | def glob0(dirname: Union[str, unicode], basename: AnyStr) -> List[AnyStr]: ... 7 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/spawn.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.spawn 2 | 3 | from typing import List, Optional 4 | 5 | def spawn(cmd: List[str], search_path: bool = ..., 6 | verbose: bool = ..., dry_run: bool = ...) -> None: ... 7 | def find_executable(executable: str, 8 | path: Optional[str] = ...) -> Optional[str]: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/auth_handler.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from boto.plugin import Plugin 3 | 4 | class NotReadyToAuthenticate(Exception): ... 5 | 6 | class AuthHandler(Plugin): 7 | capability = ... # type: Any 8 | def __init__(self, host, config, provider) -> None: ... 9 | def add_auth(self, http_request): ... 10 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/BinaryOperators.py: -------------------------------------------------------------------------------- 1 | 1 + 2 2 | 1 - 2 3 | 1 * 2 4 | 1 ** 2 5 | 1 / 2 6 | 1 // 2 7 | 1 % 2 8 | 1 << 2 9 | 1 >> 2 10 | 1 & 2 11 | 1 | 2 12 | 1 ^ 2 13 | 1 < 2 14 | 1 > 2 15 | 1 <= 2 16 | 1 >= 2 17 | 1 == 2 18 | 1 != 2 19 | 1 is 2 20 | 1 is not 2 21 | 1 or 2 22 | 1 and 2 23 | 1 in 2 24 | 1 not in 2 -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/curses/__init__.pyi: -------------------------------------------------------------------------------- 1 | import _curses 2 | from _curses import * # noqa: F403 3 | from typing import Callable, Any, Sequence, Mapping 4 | 5 | LINES: int 6 | COLS: int 7 | 8 | def initscr() -> _curses._CursesWindow: ... 9 | def start_color() -> None: ... 10 | def wrapper(func: Callable[..., Any], *arg: Any, **kwds: Any) -> None: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Protocol/KDF.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash import SHA as SHA1 3 | 4 | __revision__ = ... # type: str 5 | 6 | def PBKDF1(password, salt, dkLen, count: int = ..., hashAlgo: Optional[Any] = ...): ... 7 | def PBKDF2(password, salt, dkLen: int = ..., count: int = ..., prf: Optional[Any] = ...): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/simplejson/encoder.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, IO 2 | 3 | class JSONEncoder(object): 4 | def __init__(self, *args, **kwargs): ... 5 | def encode(self, o: Any): ... 6 | def default(self, o: Any): ... 7 | def iterencode(self, o: Any, _one_shot: bool): ... 8 | 9 | class JSONEncoderForHTML(JSONEncoder): ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/base64mime.pyi: -------------------------------------------------------------------------------- 1 | def base64_len(s: bytes) -> int: ... 2 | def header_encode(header, charset=..., keep_eols=..., maxlinelen=..., eol=...): ... 3 | def encode(s, binary=..., maxlinelen=..., eol=...): ... 4 | body_encode = encode 5 | encodestring = encode 6 | def decode(s, convert_eols=...): ... 7 | body_decode = decode 8 | decodestring = decode 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/simplejson/scanner.pyi: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | class JSONDecodeError(ValueError): 4 | msg: str = ... 5 | doc: str = ... 6 | pos: int = ... 7 | end: Optional[int] = ... 8 | lineno: int = ... 9 | colno: int = ... 10 | endlineno: Optional[int] = ... 11 | endcolno: Optional[int] = ... 12 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Functions.py: -------------------------------------------------------------------------------- 1 | def f(): 2 | '''f''' 3 | pass 4 | def f1(): pass 5 | 6 | f2 = f 7 | 8 | if True: 9 | def g(): pass 10 | else: 11 | def h(): pass 12 | 13 | class C: 14 | def i(self): pass 15 | 16 | def j(self): 17 | def j2(self): 18 | pass 19 | 20 | class C2: 21 | def k(self): pass 22 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/AwaitAsyncNames.py: -------------------------------------------------------------------------------- 1 | 2 | async 3 | await 4 | async = fob 5 | await = fob 6 | fob = async 7 | fob = await 8 | 9 | def async(): pass 10 | def await(): pass 11 | 12 | class async: pass 13 | class await: pass 14 | 15 | async(fob) 16 | await(fob) 17 | fob(async) 18 | fob(await) 19 | 20 | fob.async 21 | fob.await 22 | 23 | def fob(async, await): pass 24 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/MixedWhitespace1.py: -------------------------------------------------------------------------------- 1 | import wpf 2 | 3 | from System.Windows import Application, Window 4 | from System.Windows import Annotations 5 | import array 6 | 7 | class MyWindow(Window): 8 | def __init__(self): 9 | wpf.LoadComponent(self, 'WpfApplication45.xaml') 10 | 11 | 12 | if __name__ == '__main__': 13 | Application().Run(MyWindow()) 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/command/build_py.pyi: -------------------------------------------------------------------------------- 1 | from distutils.cmd import Command 2 | import sys 3 | 4 | if sys.version_info >= (3,): 5 | class build_py(Command): 6 | def initialize_options(self) -> None: ... 7 | def finalize_options(self) -> None: ... 8 | def run(self) -> None: ... 9 | 10 | class build_py_2to3(build_py): ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/dep_util.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.dep_util 2 | 3 | from typing import List, Tuple 4 | 5 | def newer(source: str, target: str) -> bool: ... 6 | def newer_pairwise(sources: List[str], 7 | targets: List[str]) -> List[Tuple[str, str]]: ... 8 | def newer_group(sources: List[str], target: str, missing: str = ...) -> bool: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/tkinter/dialog.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Mapping, Optional 2 | from tkinter import Widget 3 | 4 | DIALOG_ICON: str 5 | 6 | class Dialog(Widget): 7 | widgetName: str = ... 8 | num: int = ... 9 | def __init__(self, master: Optional[Any] = ..., cnf: Mapping[str, Any] = ..., **kw) -> None: ... 10 | def destroy(self) -> None: ... 11 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/ForwardRefFunc2.py: -------------------------------------------------------------------------------- 1 | class A(object): 2 | def methodA(self): 3 | return 's' 4 | 5 | class B(object): 6 | def getA(self): 7 | return self.func1() 8 | 9 | def func1(self): 10 | return self.func2() 11 | 12 | def func2(self): 13 | return self.func3() 14 | 15 | def func3(self): 16 | return A() 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Protocol/AllOrNothing.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | __revision__ = ... # type: str 4 | 5 | def isInt(x): ... 6 | 7 | class AllOrNothing: 8 | def __init__(self, ciphermodule, mode: Optional[Any] = ..., IV: Optional[Any] = ...) -> None: ... 9 | def digest(self, text): ... 10 | def undigest(self, blocks): ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/jinja2/visitor.pyi: -------------------------------------------------------------------------------- 1 | class NodeVisitor: 2 | def get_visitor(self, node): ... 3 | def visit(self, node, *args, **kwargs): ... 4 | def generic_visit(self, node, *args, **kwargs): ... 5 | 6 | class NodeTransformer(NodeVisitor): 7 | def generic_visit(self, node, *args, **kwargs): ... 8 | def visit_list(self, node, *args, **kwargs): ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/jwt/contrib/algorithms/py_ecdsa.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from jwt.algorithms import Algorithm 3 | 4 | from . import _HashAlg 5 | 6 | class ECAlgorithm(Algorithm): 7 | SHA256 = ... # type: _HashAlg 8 | SHA384 = ... # type: _HashAlg 9 | SHA512 = ... # type: _HashAlg 10 | def __init__(self, hash_alg: _HashAlg) -> None: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/jwt/contrib/algorithms/pycrypto.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from jwt.algorithms import Algorithm 3 | 4 | from . import _HashAlg 5 | 6 | class RSAAlgorithm(Algorithm): 7 | SHA256 = ... # type: _HashAlg 8 | SHA384 = ... # type: _HashAlg 9 | SHA512 = ... # type: _HashAlg 10 | def __init__(self, hash_alg: _HashAlg) -> None: ... 11 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/PositionalOnlyErrors.py: -------------------------------------------------------------------------------- 1 | def f(a, *b, /): 2 | pass 3 | 4 | def f(a, *, b, /): 5 | pass 6 | 7 | def f(a, *, b, **kwargs, /): 8 | pass 9 | 10 | def f(a, **kwargs, /): 11 | pass 12 | 13 | def f(a, /, b, /, c): 14 | pass 15 | 16 | def f(a, /:int): 17 | pass 18 | 19 | def f(a, / =123): 20 | pass 21 | 22 | def f(/): 23 | pass 24 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/_thread.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for _thread 2 | 3 | # NOTE: These are incomplete! 4 | 5 | from typing import Any 6 | 7 | def _count() -> int: ... 8 | _dangling = ... # type: Any 9 | 10 | class LockType: 11 | def acquire(self) -> None: ... 12 | def release(self) -> None: ... 13 | 14 | def allocate_lock() -> LockType: ... 15 | def get_ident() -> int: ... 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/atexit.pyi: -------------------------------------------------------------------------------- 1 | """Stub file for the 'atexit' module.""" 2 | 3 | from typing import Any, Callable 4 | 5 | def _clear() -> None: ... 6 | def _ncallbacks() -> int: ... 7 | def _run_exitfuncs() -> None: ... 8 | def register(func: Callable[..., Any], *args: Any, **kwargs: Any) -> Callable[..., Any]: ... 9 | def unregister(func: Callable[..., Any]) -> None: ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Signature/PKCS1_PSS.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class PSS_SigScheme: 4 | def __init__(self, key, mgfunc, saltLen) -> None: ... 5 | def can_sign(self): ... 6 | def sign(self, mhash): ... 7 | def verify(self, mhash, S): ... 8 | 9 | def new(key, mgfunc: Optional[Any] = ..., saltLen: Optional[Any] = ...): ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/backports_abc.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | def mk_gen(): ... 4 | def mk_awaitable(): ... 5 | def mk_coroutine(): ... 6 | 7 | Generator = ... # type: Any 8 | Awaitable = ... # type: Any 9 | Coroutine = ... # type: Any 10 | 11 | def isawaitable(obj): ... 12 | 13 | PATCHED = ... # type: Any 14 | 15 | def patch(patch_inspect=True): ... 16 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Question 3 | about: Ask a question about this project. 4 | title: '' 5 | labels: question 6 | assignees: '' 7 | 8 | --- 9 | 10 | 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/dateutil/tz/__init__.pyi: -------------------------------------------------------------------------------- 1 | from .tz import ( 2 | tzutc as tzutc, 3 | tzoffset as tzoffset, 4 | tzlocal as tzlocal, 5 | tzfile as tzfile, 6 | tzrange as tzrange, 7 | tzstr as tzstr, 8 | tzical as tzical, 9 | gettz as gettz, 10 | datetime_exists as datetime_exists, 11 | datetime_ambiguous as datetime_ambiguous, 12 | ) 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/nis.pyi: -------------------------------------------------------------------------------- 1 | import sys 2 | from typing import Dict, List 3 | 4 | if sys.platform != 'win32': 5 | def cat(map: str, domain: str = ...) -> Dict[str, str]: ... 6 | def get_default_domain() -> str: ... 7 | def maps(domain: str = ...) -> List[str]: ... 8 | def match(key: str, map: str, domain: str = ...) -> str: ... 9 | 10 | class error(Exception): ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/iterators.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.iterators (Python 3.4) 2 | 3 | from typing import Iterator, Optional 4 | from email.message import Message 5 | 6 | def body_line_iterator(msg: Message, decode: bool = ...) -> Iterator[str]: ... 7 | def typed_subpart_iterator(msg: Message, maintype: str = ..., 8 | subtype: Optional[str] = ...) -> Iterator[str]: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/base.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.base (Python 3.4) 2 | 3 | from typing import Optional, Tuple, Union 4 | import email.message 5 | 6 | _ParamsType = Union[str, None, Tuple[str, Optional[str], str]] 7 | 8 | class MIMEBase(email.message.Message): 9 | def __init__(self, _maintype: str, _subtype: str, 10 | **_params: _ParamsType) -> None: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/OSRNG/rng_base.pyi: -------------------------------------------------------------------------------- 1 | __revision__ = ... # type: str 2 | 3 | class BaseRNG: 4 | closed = ... # type: bool 5 | def __init__(self) -> None: ... 6 | def __del__(self): ... 7 | def __enter__(self): ... 8 | def __exit__(self): ... 9 | def close(self): ... 10 | def flush(self): ... 11 | def read(self, N: int = ...): ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/fnmatch.pyi: -------------------------------------------------------------------------------- 1 | from typing import AnyStr, Iterable, List, Union 2 | 3 | _EitherStr = Union[str, unicode] 4 | 5 | def fnmatch(filename: _EitherStr, pattern: _EitherStr) -> bool: ... 6 | def fnmatchcase(filename: _EitherStr, pattern: _EitherStr) -> bool: ... 7 | def filter(names: Iterable[AnyStr], pattern: _EitherStr) -> List[AnyStr]: ... 8 | def translate(pattern: AnyStr) -> AnyStr: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/concurrent/futures/process.pyi: -------------------------------------------------------------------------------- 1 | from typing import Optional, Any 2 | from ._base import Future, Executor 3 | import sys 4 | 5 | EXTRA_QUEUED_CALLS = ... # type: Any 6 | 7 | if sys.version_info >= (3,): 8 | class BrokenProcessPool(RuntimeError): ... 9 | 10 | class ProcessPoolExecutor(Executor): 11 | def __init__(self, max_workers: Optional[int] = ...) -> None: ... 12 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Library1.py: -------------------------------------------------------------------------------- 1 | class Foo(): 2 | """This is Foo and the docs should be here""" 3 | def __init__(self): 4 | self.x = 1234 5 | self.y = "str" 6 | 7 | 8 | def make_foo(): 9 | """This is make_foo and the docs should be here""" 10 | return Foo() 11 | 12 | def print_foo(f): 13 | """This is print_foo and the docs should be here""" 14 | print(f"{f.x}, {f.y}") 15 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/MixedWhitespace2.py: -------------------------------------------------------------------------------- 1 | import wpf 2 | 3 | from System.Windows import Application, Window 4 | from System.Windows import Annotations 5 | import array 6 | 7 | class MyWindow(Window): 8 | def __init__(self): 9 | wpf.LoadComponent(self, 'WpfApplication45.xaml') 10 | 11 | 12 | if __name__ == '__main__': 13 | Application().Run(MyWindow()) 14 | print('hello') 15 | 16 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/MixedWhitespace3.py: -------------------------------------------------------------------------------- 1 | import wpf 2 | 3 | from System.Windows import Application, Window 4 | from System.Windows import Annotations 5 | import array 6 | 7 | class MyWindow(Window): 8 | def __init__(self): 9 | wpf.LoadComponent(self, 'WpfApplication45.xaml') 10 | 11 | 12 | if __name__ == '__main__': 13 | print('hello') 14 | Application().Run(MyWindow()) 15 | 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/urllib/error.pyi: -------------------------------------------------------------------------------- 1 | from typing import Dict, Union 2 | from urllib.response import addinfourl 3 | 4 | # Stubs for urllib.error 5 | 6 | class URLError(IOError): 7 | reason = ... # type: Union[str, BaseException] 8 | class HTTPError(URLError, addinfourl): 9 | code = ... # type: int 10 | headers = ... # type: Dict[str, str] 11 | class ContentTooShortError(URLError): ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/concurrent/futures/process.pyi: -------------------------------------------------------------------------------- 1 | from typing import Optional, Any 2 | from ._base import Future, Executor 3 | import sys 4 | 5 | EXTRA_QUEUED_CALLS = ... # type: Any 6 | 7 | if sys.version_info >= (3,): 8 | class BrokenProcessPool(RuntimeError): ... 9 | 10 | class ProcessPoolExecutor(Executor): 11 | def __init__(self, max_workers: Optional[int] = ...) -> None: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/dircache.pyi: -------------------------------------------------------------------------------- 1 | # Source: https://hg.python.org/cpython/file/2.7/Lib/dircache.py 2 | 3 | from typing import List, MutableSequence, Text, Union 4 | 5 | def reset() -> None: ... 6 | def listdir(path: Text) -> List[str]: ... 7 | 8 | opendir = listdir 9 | 10 | def annotate(head: Text, list: Union[MutableSequence[str], MutableSequence[Text], MutableSequence[Union[str, Text]]]) -> None: ... 11 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/Literals.py: -------------------------------------------------------------------------------- 1 | "abc" 2 | r"raw string" 3 | R"raw string" 4 | """abc""" 5 | r"""raw string""" 6 | R"""raw string""" 7 | 'abc' 8 | r'raw string' 9 | R'raw string' 10 | '''abc''' 11 | r'''raw string''' 12 | R'''raw string''' 13 | 1000 14 | 2147483647 15 | 3.14 16 | 10. 17 | .001 18 | 1e100 19 | 3.14e-10 20 | 0e0 21 | 3.14j 22 | 10.j 23 | 10j 24 | .001j 25 | 1e100j 26 | 3.14e-10j 27 | -2147483648 28 | -100 -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/NonlocalStmt.py: -------------------------------------------------------------------------------- 1 | def g(): 2 | fob = 1 3 | oar = 1 4 | def f(): 5 | nonlocal fob 6 | nonlocal fob, oar 7 | 8 | 9 | def g(): 10 | def f(): 11 | nonlocal fob 12 | 13 | fob = 1 14 | 15 | 16 | def f(): 17 | class C: 18 | nonlocal fob 19 | fob = 1 20 | fob = 2 21 | 22 | class X: 23 | def f(x): 24 | nonlocal __class__ 25 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/commands.pyi: -------------------------------------------------------------------------------- 1 | from typing import overload, AnyStr, Text, Tuple 2 | 3 | def getstatus(file: Text) -> str: ... 4 | def getoutput(cmd: Text) -> str: ... 5 | def getstatusoutput(cmd: Text) -> Tuple[int, str]: ... 6 | 7 | @overload 8 | def mk2arg(head: bytes, x: bytes) -> bytes: ... 9 | @overload 10 | def mk2arg(head: Text, x: Text) -> Text: ... 11 | 12 | def mkarg(x: AnyStr) -> AnyStr: ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/dateutil/_common.pyi: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | class weekday(object): 4 | def __init__(self, weekday: int, n: Optional[int]=...) -> None: ... 5 | 6 | def __call__(self, n: int) -> 'weekday': ... 7 | 8 | def __eq__(self, other) -> bool: ... 9 | 10 | def __repr__(self) -> str: ... 11 | 12 | weekday = ... # type: int 13 | n = ... # type: int 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/contrib/jsrouting.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | def dumps(*args): ... 4 | def render_template(name_parts, rules, converters): ... 5 | def generate_map(map, name=''): ... 6 | def generate_adapter(adapter, name='', map_name=''): ... 7 | def js_to_url_function(converter): ... 8 | def NumberConverter_js_to_url(conv): ... 9 | 10 | js_to_url_functions = ... # type: Any 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/click/globals.pyi: -------------------------------------------------------------------------------- 1 | from click.core import Context 2 | from typing import Optional 3 | 4 | 5 | def get_current_context(silent: bool = ...) -> Context: 6 | ... 7 | 8 | 9 | def push_context(ctx: Context) -> None: 10 | ... 11 | 12 | 13 | def pop_context() -> None: 14 | ... 15 | 16 | 17 | def resolve_color_default(color: Optional[bool] = ...) -> Optional[bool]: 18 | ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/copy.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for copy 2 | 3 | from typing import TypeVar, Optional, Dict, Any 4 | 5 | _T = TypeVar('_T') 6 | 7 | # None in CPython but non-None in Jython 8 | PyStringMap: Any 9 | 10 | # Note: memo and _nil are internal kwargs. 11 | def deepcopy(x: _T, memo: Optional[Dict[int, _T]] = ..., _nil: Any = ...) -> _T: ... 12 | def copy(x: _T) -> _T: ... 13 | class Error(Exception): ... 14 | error = Error 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/quopri.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for quopri (Python 2 and 3) 2 | 3 | from typing import BinaryIO 4 | 5 | def encode(input: BinaryIO, output: BinaryIO, quotetabs: int, header: int = ...) -> None: ... 6 | def encodestring(s: bytes, quotetabs: int = ..., header: int = ...) -> bytes: ... 7 | def decode(input: BinaryIO, output: BinaryIO, header: int = ...) -> None: ... 8 | def decodestring(s: bytes, header: int = ...) -> bytes: ... 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/rlcompleter.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for rlcompleter 2 | 3 | from typing import Any, Dict, Optional, Union 4 | import sys 5 | 6 | if sys.version_info >= (3,): 7 | _Text = str 8 | else: 9 | _Text = Union[str, unicode] 10 | 11 | 12 | class Completer: 13 | def __init__(self, namespace: Optional[Dict[str, Any]] = ...) -> None: ... 14 | def complete(self, text: _Text, state: int) -> Optional[str]: ... 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/fnmatch.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for fnmatch 2 | 3 | # Based on http://docs.python.org/3.2/library/fnmatch.html and 4 | # python-lib/fnmatch.py 5 | 6 | from typing import Iterable, List, AnyStr 7 | 8 | def fnmatch(name: AnyStr, pat: AnyStr) -> bool: ... 9 | def fnmatchcase(name: AnyStr, pat: AnyStr) -> bool: ... 10 | def filter(names: Iterable[AnyStr], pat: AnyStr) -> List[AnyStr]: ... 11 | def translate(pat: str) -> str: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/s3/prefix.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class Prefix: 4 | bucket = ... # type: Any 5 | name = ... # type: Any 6 | def __init__(self, bucket: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ... 7 | def startElement(self, name, attrs, connection): ... 8 | def endElement(self, name, value, connection): ... 9 | @property 10 | def provider(self): ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/jinja2/meta.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from jinja2.compiler import CodeGenerator 3 | 4 | class TrackingCodeGenerator(CodeGenerator): 5 | undeclared_identifiers = ... # type: Any 6 | def __init__(self, environment) -> None: ... 7 | def write(self, x): ... 8 | def pull_locals(self, frame): ... 9 | 10 | def find_undeclared_variables(ast): ... 11 | def find_referenced_templates(ast): ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/generator.pyi: -------------------------------------------------------------------------------- 1 | class Generator: 2 | def __init__(self, outfp, mangle_from_: bool = ..., maxheaderlen: int = ...) -> None: ... 3 | def write(self, s) -> None: ... 4 | def flatten(self, msg, unixfrom: bool = ...) -> None: ... 5 | def clone(self, fp): ... 6 | 7 | 8 | class DecodedGenerator(Generator): 9 | def __init__(self, outfp, mangle_from_: bool = ..., maxheaderlen: int = ..., fmt=...) -> None: ... 10 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/_md5.pyi: -------------------------------------------------------------------------------- 1 | blocksize = ... # type: int 2 | digest_size = ... # type: int 3 | 4 | class MD5Type(object): 5 | name = ... # type: str 6 | block_size = ... # type: int 7 | digest_size = ... # type: int 8 | def copy(self) -> "MD5Type": ... 9 | def digest(self) -> str: ... 10 | def hexdigest(self) -> str: ... 11 | def update(self, arg: str) -> None: ... 12 | 13 | def new(arg: str = ...) -> MD5Type: ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/toaiff.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for toaiff (Python 2) 2 | 3 | # Source: https://hg.python.org/cpython/file/2.7/Lib/toaiff.py 4 | from pipes import Template 5 | from typing import Dict, List 6 | 7 | 8 | __all__: List[str] 9 | table: Dict[str, Template] 10 | t: Template 11 | uncompress: Template 12 | 13 | class error(Exception): ... 14 | 15 | def toaiff(filename: str) -> str: ... 16 | def _toaiff(filename: str, temps: List[str]) -> str: ... 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/hashalgo.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class HashAlgo: 4 | digest_size = ... # type: Any 5 | block_size = ... # type: Any 6 | def __init__(self, hashFactory, data: Optional[Any] = ...) -> None: ... 7 | def update(self, data): ... 8 | def digest(self): ... 9 | def hexdigest(self): ... 10 | def copy(self): ... 11 | def new(self, data: Optional[Any] = ...): ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/Fortuna/SHAd256.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class _SHAd256: 4 | digest_size = ... # type: Any 5 | def __init__(self, internal_api_check, sha256_hash_obj) -> None: ... 6 | def copy(self): ... 7 | def digest(self): ... 8 | def hexdigest(self): ... 9 | def update(self, data): ... 10 | 11 | digest_size = ... # type: Any 12 | 13 | def new(data: Optional[Any] = ...): ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pytz/lazy.pyi: -------------------------------------------------------------------------------- 1 | from typing import Iterator, List, Set, TypeVar 2 | from collections import Mapping 3 | 4 | _T = TypeVar('_T') 5 | _KT = TypeVar('_KT') 6 | _VT = TypeVar('_VT') 7 | 8 | class LazyDict(Mapping[_KT, _VT]): 9 | def __getitem__(self, key: _KT) -> _VT: ... 10 | def __iter__(self) -> Iterator[_KT]: ... 11 | def __len__(self) -> int: ... 12 | 13 | class LazyList(List[_T]): ... 14 | class LazySet(Set[_T]): ... 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/six/moves/urllib/response.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for six.moves.urllib.response 2 | # 3 | # Note: Commented out items means they weren't implemented at the time. 4 | # Uncomment them when the modules have been added to the typeshed. 5 | # from urllib.response import addbase as addbase 6 | # from urllib.response import addclosehook as addclosehook 7 | # from urllib.response import addinfo as addinfo 8 | from urllib.response import addinfourl as addinfourl 9 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/genericpath.pyi: -------------------------------------------------------------------------------- 1 | from typing import AnyStr, List 2 | 3 | class _unicode: ... 4 | 5 | def commonprefix(list: List[AnyStr]) -> AnyStr: ... 6 | def exists(path: unicode) -> bool: ... 7 | def getatime(path: unicode) -> float: ... 8 | def getmtime(path: unicode) -> float: ... 9 | def getctime(path: unicode) -> float: ... 10 | def getsize(path: unicode) -> int: ... 11 | def isfile(path: unicode) -> bool: ... 12 | def isdir(path: unicode) -> bool: ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/concurrent/futures/thread.pyi: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | from ._base import Executor, Future 3 | import sys 4 | 5 | class ThreadPoolExecutor(Executor): 6 | if sys.version_info >= (3, 6) or sys.version_info < (3,): 7 | def __init__(self, max_workers: Optional[int] = ..., 8 | thread_name_prefix: str = ...) -> None: ... 9 | else: 10 | def __init__(self, max_workers: Optional[int] = ...) -> None: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/compat.pyi: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | from typing import Any 4 | from base64 import encodestring as encodebytes 5 | 6 | from six.moves import http_client 7 | 8 | expanduser = ... # type: Any 9 | 10 | if sys.version_info >= (3, 0): 11 | StandardError = Exception 12 | else: 13 | StandardError = __builtins__.StandardError 14 | 15 | long_type = ... # type: Any 16 | unquote_str = ... # type: Any 17 | parse_qs_safe = ... # type: Any 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pymysql/charset.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | MBLENGTH = ... # type: Any 4 | 5 | class Charset: 6 | is_default = ... # type: Any 7 | def __init__(self, id, name, collation, is_default): ... 8 | 9 | class Charsets: 10 | def __init__(self): ... 11 | def add(self, c): ... 12 | def by_id(self, id): ... 13 | def by_name(self, name): ... 14 | 15 | def charset_by_name(name): ... 16 | def charset_by_id(id): ... 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/concurrent/futures/thread.pyi: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | from ._base import Executor, Future 3 | import sys 4 | 5 | class ThreadPoolExecutor(Executor): 6 | if sys.version_info >= (3, 6) or sys.version_info < (3,): 7 | def __init__(self, max_workers: Optional[int] = ..., 8 | thread_name_prefix: str = ...) -> None: ... 9 | else: 10 | def __init__(self, max_workers: Optional[int] = ...) -> None: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/pct_warnings.pyi: -------------------------------------------------------------------------------- 1 | class CryptoWarning(Warning): ... 2 | class CryptoDeprecationWarning(DeprecationWarning, CryptoWarning): ... 3 | class CryptoRuntimeWarning(RuntimeWarning, CryptoWarning): ... 4 | class RandomPool_DeprecationWarning(CryptoDeprecationWarning): ... 5 | class ClockRewindWarning(CryptoRuntimeWarning): ... 6 | class GetRandomNumber_DeprecationWarning(CryptoDeprecationWarning): ... 7 | class PowmInsecureWarning(CryptoRuntimeWarning): ... 8 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/internal/enum_type_wrapper.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, List, Tuple 2 | 3 | class EnumTypeWrapper(object): 4 | def __init__(self, enum_type: Any) -> None: ... 5 | def Name(self, number: int) -> bytes: ... 6 | def Value(self, name: bytes) -> int: ... 7 | def keys(self) -> List[bytes]: ... 8 | def values(self) -> List[int]: ... 9 | 10 | @classmethod 11 | def items(cls) -> List[Tuple[bytes, int]]: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/unittest_import_public_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | ) 7 | 8 | 9 | class PublicImportMessage(Message): 10 | e = ... # type: int 11 | 12 | def __init__(self, 13 | e: Optional[int] = ..., 14 | ) -> None: ... 15 | 16 | @classmethod 17 | def FromString(cls, s: bytes) -> PublicImportMessage: ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/useragents.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | class UserAgentParser: 4 | platforms = ... # type: Any 5 | browsers = ... # type: Any 6 | def __init__(self): ... 7 | def __call__(self, user_agent): ... 8 | 9 | class UserAgent: 10 | string = ... # type: Any 11 | def __init__(self, environ_or_string): ... 12 | def to_header(self): ... 13 | def __nonzero__(self): ... 14 | __bool__ = ... # type: Any 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/routes/__init__.pyi: -------------------------------------------------------------------------------- 1 | from . import mapper 2 | from . import util 3 | 4 | class _RequestConfig: 5 | def __getattr__(self, name): ... 6 | def __setattr__(self, name, value): ... 7 | def __delattr__(self, name): ... 8 | def load_wsgi_environ(self, environ): ... 9 | 10 | def request_config(original=...): ... 11 | 12 | Mapper = mapper.Mapper 13 | redirect_to = util.redirect_to 14 | url_for = util.url_for 15 | URLGenerator = util.URLGenerator 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/MD2.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class MD2Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/MD4.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class MD4Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/MD5.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class MD5Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/SHA.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class SHA1Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/AstAnalysis/Classes.py: -------------------------------------------------------------------------------- 1 | class C1: 2 | """C1""" 3 | pass 4 | 5 | class C2(object): pass 6 | class C3(C2): pass 7 | class C4(C1, C2, C3): pass 8 | 9 | C5 = C1 10 | 11 | if True: 12 | class D: pass 13 | 14 | if False: 15 | class E: pass 16 | 17 | class F1: 18 | class F2: pass 19 | class F3: 20 | if True: 21 | class F4: pass 22 | else: 23 | class F5: pass 24 | F6 = C1 25 | 26 | def f(): 27 | class X: pass 28 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/parser.pyi: -------------------------------------------------------------------------------- 1 | from .feedparser import FeedParser as FeedParser # not in __all__ but listed in documentation 2 | 3 | class Parser: 4 | def __init__(self, *args, **kws) -> None: ... 5 | def parse(self, fp, headersonly: bool = ...): ... 6 | def parsestr(self, text, headersonly: bool = ...): ... 7 | 8 | class HeaderParser(Parser): 9 | def parse(self, fp, headersonly: bool = ...): ... 10 | def parsestr(self, text, headersonly: bool = ...): ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/SHA224.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class SHA224Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/SHA256.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class SHA256Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/SHA384.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class SHA384Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/SHA512.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class SHA512Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/s3/user.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class User: 4 | type = ... # type: Any 5 | id = ... # type: Any 6 | display_name = ... # type: Any 7 | def __init__(self, parent: Optional[Any] = ..., id: str = ..., display_name: str = ...) -> None: ... 8 | def startElement(self, name, attrs, connection): ... 9 | def endElement(self, name, value, connection): ... 10 | def to_xml(self, element_name: str = ...): ... 11 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/FStringErrors.py: -------------------------------------------------------------------------------- 1 | f'{' 2 | f'{\n}' 3 | f''' 4 | {import something} 5 | ''' 6 | f''' 7 | {def test: 8 | pass} 9 | ''' 10 | 11 | f'' b'' 12 | 13 | f'{something' 14 | 15 | f'}' 16 | 17 | f'{#}' 18 | 19 | f"{" 20 | 21 | f'{import random}' 22 | 23 | f'{}' 24 | 25 | f'{a = 1}' 26 | 27 | f'{lambda x: 1}' 28 | 29 | f'\N{' 30 | 31 | f'{1!}' 32 | 33 | f'{1!k}' 34 | 35 | f'{)}' 36 | 37 | f'{1:)}' 38 | 39 | f'{ (} }' 40 | 41 | f'{]}' 42 | 43 | f'{a /= 1}' 44 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/RIPEMD.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | from Crypto.Hash.hashalgo import HashAlgo 3 | 4 | class RIPEMD160Hash(HashAlgo): 5 | oid = ... # type: Any 6 | digest_size = ... # type: int 7 | block_size = ... # type: int 8 | def __init__(self, data: Optional[Any] = ...) -> None: ... 9 | def new(self, data: Optional[Any] = ...): ... 10 | 11 | def new(data: Optional[Any] = ...): ... 12 | 13 | digest_size = ... # type: Any 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/source_context_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | Text, 7 | ) 8 | 9 | 10 | class SourceContext(Message): 11 | file_name = ... # type: Text 12 | 13 | def __init__(self, 14 | file_name: Optional[Text] = ..., 15 | ) -> None: ... 16 | 17 | @classmethod 18 | def FromString(cls, s: bytes) -> SourceContext: ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/unittest_no_arena_import_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from typing import ( 5 | Optional, 6 | ) 7 | 8 | 9 | class ImportNoArenaNestedMessage(Message): 10 | d = ... # type: int 11 | 12 | def __init__(self, 13 | d: Optional[int] = ..., 14 | ) -> None: ... 15 | 16 | @classmethod 17 | def FromString(cls, s: bytes) -> ImportNoArenaNestedMessage: ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/grp.pyi: -------------------------------------------------------------------------------- 1 | from typing import List, NamedTuple, Optional 2 | 3 | struct_group = NamedTuple("struct_group", [("gr_name", str), 4 | ("gr_passwd", Optional[str]), 5 | ("gr_gid", int), 6 | ("gr_mem", List[str])]) 7 | 8 | def getgrall() -> List[struct_group]: ... 9 | def getgrgid(gid: int) -> struct_group: ... 10 | def getgrnam(name: str) -> struct_group: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/tty.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for tty (Python 3.6) 2 | 3 | from typing import IO, Union 4 | 5 | _FD = Union[int, IO[str]] 6 | 7 | # XXX: Undocumented integer constants 8 | IFLAG = ... # type: int 9 | OFLAG = ... # type: int 10 | CFLAG = ... # type: int 11 | LFLAG = ... # type: int 12 | ISPEED = ... # type: int 13 | OSPEED = ... # type: int 14 | CC = ... # type: int 15 | 16 | def setraw(fd: _FD, when: int = ...) -> None: ... 17 | def setcbreak(fd: _FD, when: int = ...) -> None: ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/curses/textpad.pyi: -------------------------------------------------------------------------------- 1 | from _curses import _CursesWindow 2 | from typing import Callable, Union 3 | 4 | def rectangle(win: _CursesWindow, uly: int, ulx: int, lry: int, lrx: int) -> None: ... 5 | 6 | class Textbox: 7 | stripspaces: bool 8 | def __init__(self, w: _CursesWindow, insert_mode: bool= ...) -> None: ... 9 | def edit(self, validate: Callable[[int], int]) -> str: ... 10 | def do_command(self, ch: Union[str, int]) -> None: ... 11 | def gather(self) -> str: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/emoji.pyi: -------------------------------------------------------------------------------- 1 | from typing import Tuple, Pattern, List, Dict, Union 2 | 3 | _DEFAULT_DELIMITER = ... # type: str 4 | 5 | def emojize( 6 | string: str, 7 | use_aliases: bool=..., 8 | delimiters: Tuple[str, str]=... 9 | ) -> str: ... 10 | 11 | def demojize( 12 | string: str, 13 | delimiters: Tuple[str, str]=... 14 | ) -> str: ... 15 | 16 | def get_emoji_regexp() -> Pattern: ... 17 | 18 | def emoji_lis(string: str) -> List[Dict[str, Union[int, str]]]: ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/3/docutils/parsers/rst/roles.pyi: -------------------------------------------------------------------------------- 1 | import docutils.nodes 2 | import docutils.parsers.rst.states 3 | 4 | from typing import Callable, Any, List, Dict, Tuple 5 | 6 | def register_local_role(name: str, 7 | role_fn: Callable[[str, str, str, int, docutils.parsers.rst.states.Inliner, Dict, List], 8 | Tuple[List[docutils.nodes.reference], List[docutils.nodes.reference]]] 9 | ) -> None: 10 | ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/_threading_local.pyi: -------------------------------------------------------------------------------- 1 | # Source: https://hg.python.org/cpython/file/2.7/Lib/_threading_local.py 2 | from typing import Any, List 3 | 4 | __all__: List[str] 5 | 6 | class _localbase(object): ... 7 | 8 | class local(_localbase): 9 | def __getattribute__(self, name: str) -> Any: ... 10 | def __setattr__(self, name: str, value: Any) -> None: ... 11 | def __delattr__(self, name: str) -> None: ... 12 | def __del__(self) -> None: ... 13 | 14 | def _patch(self: local) -> None: ... 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/mime/application.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.application 2 | 3 | from typing import Callable, Optional, Tuple, Union 4 | from email.mime.nonmultipart import MIMENonMultipart 5 | 6 | _ParamsType = Union[str, None, Tuple[str, Optional[str], str]] 7 | 8 | class MIMEApplication(MIMENonMultipart): 9 | def __init__(self, _data: bytes, _subtype: str = ..., 10 | _encoder: Callable[[MIMEApplication], None] = ..., 11 | **_params: _ParamsType) -> None: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/audio.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.audio (Python 3.4) 2 | 3 | from typing import Callable, Optional, Tuple, Union 4 | from email.mime.nonmultipart import MIMENonMultipart 5 | 6 | _ParamsType = Union[str, None, Tuple[str, Optional[str], str]] 7 | 8 | class MIMEAudio(MIMENonMultipart): 9 | def __init__(self, _audiodata: bytes, _subtype: Optional[str] = ..., 10 | _encoder: Callable[[MIMEAudio], None] = ..., 11 | **_params: _ParamsType) -> None: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/image.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.image (Python 3.4) 2 | 3 | from typing import Callable, Optional, Tuple, Union 4 | from email.mime.nonmultipart import MIMENonMultipart 5 | 6 | _ParamsType = Union[str, None, Tuple[str, Optional[str], str]] 7 | 8 | class MIMEImage(MIMENonMultipart): 9 | def __init__(self, _imagedata: bytes, _subtype: Optional[str] = ..., 10 | _encoder: Callable[[MIMEImage], None] = ..., 11 | **_params: _ParamsType) -> None: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/application.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.application (Python 3.4) 2 | 3 | from typing import Callable, Optional, Tuple, Union 4 | from email.mime.nonmultipart import MIMENonMultipart 5 | 6 | _ParamsType = Union[str, None, Tuple[str, Optional[str], str]] 7 | 8 | class MIMEApplication(MIMENonMultipart): 9 | def __init__(self, _data: bytes, _subtype: str = ..., 10 | _encoder: Callable[[MIMEApplication], None] = ..., 11 | **_params: _ParamsType) -> None: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/click/_termui_impl.pyi: -------------------------------------------------------------------------------- 1 | from typing import ContextManager, Iterator, Generic, TypeVar 2 | 3 | _T = TypeVar("_T") 4 | 5 | class ProgressBar(object, Generic[_T]): 6 | def update(self, n_steps: int) -> None: ... 7 | def finish(self) -> None: ... 8 | def __enter__(self) -> "ProgressBar[_T]": ... 9 | def __exit__(self, exc_type, exc_value, tb) -> None: ... 10 | def __iter__(self) -> "ProgressBar[_T]": ... 11 | def next(self) -> _T: ... 12 | def __next__(self) -> _T: ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/pipes.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, IO 2 | 3 | class Template: 4 | def __init__(self) -> None: ... 5 | def reset(self) -> None: ... 6 | def clone(self) -> Template: ... 7 | def debug(self, flag: bool) -> None: ... 8 | def append(self, cmd: str, kind: str) -> None: ... 9 | def prepend(self, cmd: str, kind: str) -> None: ... 10 | def open(self, file: str, mode: str) -> IO[Any]: ... 11 | def copy(self, infile: str, outfile: str) -> None: ... 12 | 13 | def quote(s: str) -> str: ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/_sha.pyi: -------------------------------------------------------------------------------- 1 | blocksize = ... # type: int 2 | block_size = ... # type: int 3 | digest_size = ... # type: int 4 | 5 | class sha(object): # not actually exposed 6 | name = ... # type: str 7 | block_size = ... # type: int 8 | digest_size = ... # type: int 9 | digestsize = ... # type: int 10 | def copy(self) -> "sha": ... 11 | def digest(self) -> str: ... 12 | def hexdigest(self) -> str: ... 13 | def update(self, arg: str) -> None: ... 14 | 15 | def new(arg: str = ...) -> sha: ... 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/PKCS1_v1_5.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | 3 | from Crypto.PublicKey.RSA import _RSAobj 4 | 5 | class PKCS115_Cipher: 6 | def __init__(self, key: _RSAobj) -> None: ... 7 | def can_encrypt(self) -> bool: ... 8 | def can_decrypt(self) -> bool: ... 9 | rf = ... # type: Any 10 | def encrypt(self, message: Union[bytes, Text]) -> bytes: ... 11 | def decrypt(self, ct: bytes, sentinel: Any) -> bytes: ... 12 | 13 | def new(key: _RSAobj) -> PKCS115_Cipher: ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/s3/bucketlogging.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class BucketLogging: 4 | target = ... # type: Any 5 | prefix = ... # type: Any 6 | grants = ... # type: Any 7 | def __init__(self, target: Optional[Any] = ..., prefix: Optional[Any] = ..., grants: Optional[Any] = ...) -> None: ... 8 | def add_grant(self, grant): ... 9 | def startElement(self, name, attrs, connection): ... 10 | def endElement(self, name, value, connection): ... 11 | def to_xml(self): ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/_compression.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | import io 3 | 4 | BUFFER_SIZE = ... # type: Any 5 | 6 | class BaseStream(io.BufferedIOBase): ... 7 | 8 | class DecompressReader(io.RawIOBase): 9 | def readable(self): ... 10 | def __init__(self, fp, decomp_factory, trailing_error=..., **decomp_args): ... 11 | def close(self): ... 12 | def seekable(self): ... 13 | def readinto(self, b): ... 14 | def read(self, size=-1): ... 15 | def seek(self, offset, whence=...): ... 16 | def tell(self): ... 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/mime/multipart.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.mime.multipart (Python 3.4) 2 | 3 | from typing import Optional, Sequence, Tuple, Union 4 | from email.message import Message 5 | from email.mime.base import MIMEBase 6 | 7 | _ParamsType = Union[str, None, Tuple[str, Optional[str], str]] 8 | 9 | class MIMEMultipart(MIMEBase): 10 | def __init__(self, _subtype: str = ..., boundary: Optional[str] = ..., 11 | _subparts: Optional[Sequence[Message]] = ..., 12 | **_params: _ParamsType) -> None: ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/header.pyi: -------------------------------------------------------------------------------- 1 | def decode_header(header): ... 2 | def make_header(decoded_seq, maxlinelen=..., header_name=..., continuation_ws=...): ... 3 | 4 | class Header: 5 | def __init__(self, s=..., charset=..., maxlinelen=..., header_name=..., continuation_ws=..., 6 | errors=...) -> None: ... 7 | def __unicode__(self): ... 8 | def __eq__(self, other): ... 9 | def __ne__(self, other): ... 10 | def append(self, s, charset=..., errors=...) -> None: ... 11 | def encode(self, splitchars=...): ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/ARC4.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | 3 | __revision__ = ... # type: str 4 | 5 | class ARC4Cipher: 6 | block_size = ... # type: int 7 | key_size = ... # type: int 8 | def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... 9 | def encrypt(self, plaintext): ... 10 | def decrypt(self, ciphertext): ... 11 | 12 | def new(key: Union[bytes, Text], *args, **kwargs) -> ARC4Cipher: ... 13 | 14 | block_size = ... # type: int 15 | key_size = ... # type: int 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/s3/deletemarker.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class DeleteMarker: 4 | bucket = ... # type: Any 5 | name = ... # type: Any 6 | version_id = ... # type: Any 7 | is_latest = ... # type: bool 8 | last_modified = ... # type: Any 9 | owner = ... # type: Any 10 | def __init__(self, bucket: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ... 11 | def startElement(self, name, attrs, connection): ... 12 | def endElement(self, name, value, connection): ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/security.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | SALT_CHARS = ... # type: Any 4 | DEFAULT_PBKDF2_ITERATIONS = ... # type: Any 5 | 6 | def pbkdf2_hex(data, salt, iterations=..., keylen=None, hashfunc=None): ... 7 | def pbkdf2_bin(data, salt, iterations=..., keylen=None, hashfunc=None): ... 8 | def safe_str_cmp(a, b): ... 9 | def gen_salt(length): ... 10 | def generate_password_hash(password, method='', salt_length=8): ... 11 | def check_password_hash(pwhash, password): ... 12 | def safe_join(directory, filename): ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/_warnings.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, List, Optional, Type 2 | 3 | default_action = ... # type: str 4 | filters = ... # type: List[tuple] 5 | once_registry = ... # type: dict 6 | 7 | def warn(message: Warning, category: Optional[Type[Warning]] = ..., stacklevel: int = ...) -> None: ... 8 | def warn_explicit(message: Warning, category: Optional[Type[Warning]], 9 | filename: str, lineno: int, 10 | module: Any = ..., registry: dict = ..., 11 | module_globals: dict = ...) -> None: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/mutex.pyi: -------------------------------------------------------------------------------- 1 | # Source: https://hg.python.org/cpython/file/2.7/Lib/mutex.py 2 | 3 | from collections import deque 4 | from typing import Any, Callable, TypeVar 5 | 6 | _ArgType = TypeVar('_ArgType') 7 | 8 | class mutex: 9 | locked = ... # type: bool 10 | queue = ... # type: deque 11 | def __init__(self) -> None: ... 12 | def test(self) -> bool: ... 13 | def testandset(self) -> bool: ... 14 | def lock(self, function: Callable[[_ArgType], Any], argument: _ArgType) -> None: ... 15 | def unlock(self) -> None: ... 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/_warnings.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, List, Optional, Type 2 | 3 | _defaultaction = ... # type: str 4 | _onceregistry = ... # type: dict 5 | filters = ... # type: List[tuple] 6 | 7 | def warn(message: Warning, category: Optional[Type[Warning]] = ..., stacklevel: int = ...) -> None: ... 8 | def warn_explicit(message: Warning, category: Optional[Type[Warning]], 9 | filename: str, lineno: int, 10 | module: Any = ..., registry: dict = ..., 11 | module_globals: dict = ...) -> None: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pymysql/constants/FLAG.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | NOT_NULL = ... # type: Any 4 | PRI_KEY = ... # type: Any 5 | UNIQUE_KEY = ... # type: Any 6 | MULTIPLE_KEY = ... # type: Any 7 | BLOB = ... # type: Any 8 | UNSIGNED = ... # type: Any 9 | ZEROFILL = ... # type: Any 10 | BINARY = ... # type: Any 11 | ENUM = ... # type: Any 12 | AUTO_INCREMENT = ... # type: Any 13 | TIMESTAMP = ... # type: Any 14 | SET = ... # type: Any 15 | PART_KEY = ... # type: Any 16 | GROUP = ... # type: Any 17 | UNIQUE = ... # type: Any 18 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/NonlocalStmtIllegal.py: -------------------------------------------------------------------------------- 1 | def g(): 2 | def f(): 3 | nonlocal a 4 | 5 | 6 | def f(): 7 | x = 42 8 | def g(): 9 | global x 10 | nonlocal x 11 | 12 | def f(): 13 | x = 42 14 | def g(x): 15 | nonlocal x 16 | 17 | nonlocal fob 18 | 19 | globalvar = 42 20 | def g(): 21 | nonlocal globalvar 22 | 23 | 24 | class C: 25 | x = 42 26 | def f(): 27 | nonlocal x 28 | 29 | 30 | def h(): 31 | x = 42 32 | def f(): 33 | global x 34 | def g(): 35 | nonlocal x -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/simplejson/__init__.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, IO, Text 2 | 3 | from simplejson.scanner import JSONDecodeError as JSONDecodeError 4 | from simplejson.decoder import JSONDecoder as JSONDecoder 5 | from simplejson.encoder import JSONEncoder as JSONEncoder, JSONEncoderForHTML as JSONEncoderForHTML 6 | 7 | def dumps(obj: Any, *args: Any, **kwds: Any) -> str: ... 8 | def dump(obj: Any, fp: IO[str], *args: Any, **kwds: Any) -> None: ... 9 | def loads(s: Text, **kwds: Any) -> Any: ... 10 | def load(fp: IO[str], **kwds: Any) -> Any: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/first.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Callable, Iterable, Optional, overload, TypeVar, Union 2 | 3 | _T = TypeVar('_T') 4 | _S = TypeVar('_S') 5 | 6 | @overload 7 | def first(iterable: Iterable[_T]) -> Optional[_T]: ... 8 | @overload 9 | def first(iterable: Iterable[_T], default: _S) -> Union[_T, _S]: ... 10 | @overload 11 | def first(iterable: Iterable[_T], default: _S, key: Optional[Callable[[_T], Any]]) -> Union[_T, _S]: ... 12 | @overload 13 | def first(iterable: Iterable[_T], *, key: Optional[Callable[[_T], Any]]) -> Optional[_T]: ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/markupsafe/_compat.pyi: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | from typing import Any, Iterator, Mapping, Text, Tuple, TypeVar 4 | 5 | _K = TypeVar('_K') 6 | _V = TypeVar('_V') 7 | 8 | PY2 = ... # type: bool 9 | def iteritems(d: Mapping[_K, _V]) -> Iterator[Tuple[_K, _V]]: ... 10 | if sys.version_info[0] >= 3: 11 | text_type = str 12 | string_types = str, 13 | unichr = chr 14 | int_types = int, 15 | else: 16 | text_type = unicode 17 | string_types = (str, unicode) 18 | unichr = __builtins__.unichr 19 | int_types = (int, long) 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/netrc.pyi: -------------------------------------------------------------------------------- 1 | from typing import AnyStr, Dict, List, Optional, Tuple, overload 2 | 3 | 4 | class NetrcParseError(Exception): 5 | filename: Optional[str] 6 | lineno: Optional[int] 7 | msg: str 8 | 9 | 10 | # (login, account, password) tuple 11 | _NetrcTuple = Tuple[str, Optional[str], Optional[str]] 12 | 13 | 14 | class netrc: 15 | hosts: Dict[str, _NetrcTuple] 16 | macros: Dict[str, List[str]] 17 | 18 | def __init__(self, file: str = ...) -> None: ... 19 | def authenticators(self, host: str) -> Optional[_NetrcTuple]: ... 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/_json.pyi: -------------------------------------------------------------------------------- 1 | """Stub file for the '_json' module.""" 2 | # This is an autogenerated file. It serves as a starting point 3 | # for a more precise manual annotation of this module. 4 | # Feel free to edit the source below, but remove this header when you do. 5 | 6 | from typing import Any, List, Tuple, Dict, Generic 7 | 8 | def encode_basestring_ascii(*args, **kwargs) -> str: 9 | raise TypeError() 10 | 11 | def scanstring(a, b, *args, **kwargs) -> tuple: 12 | raise TypeError() 13 | 14 | 15 | class Encoder(object): ... 16 | 17 | class Scanner(object): ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/file_util.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.file_util 2 | 3 | from typing import Optional, Sequence, Tuple 4 | 5 | 6 | def copy_file(src: str, dst: str, preserve_mode: bool = ..., 7 | preserve_times: bool = ..., update: bool = ..., 8 | link: Optional[str] = ..., verbose: bool = ..., 9 | dry_run: bool = ...) -> Tuple[str, str]: ... 10 | def move_file(src: str, dst: str, verbose: bool = ..., 11 | dry_run: bool = ...) -> str: ... 12 | def write_file(filename: str, contents: Sequence[str]) -> None: ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/scribe/ttypes.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | fastbinary = ... # type: Any 4 | 5 | class ResultCode: 6 | OK = ... # type: Any 7 | TRY_LATER = ... # type: Any 8 | 9 | class LogEntry: 10 | thrift_spec = ... # type: Any 11 | category = ... # type: Any 12 | message = ... # type: Any 13 | def __init__(self, category=..., message=...) -> None: ... 14 | def read(self, iprot): ... 15 | def write(self, oprot): ... 16 | def validate(self): ... 17 | def __eq__(self, other): ... 18 | def __ne__(self, other): ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/termcolor.pyi: -------------------------------------------------------------------------------- 1 | # Stub for termcolor: https://pypi.python.org/pypi/termcolor 2 | from typing import Any, Iterable, Optional, Text 3 | 4 | 5 | def colored( 6 | text: Text, 7 | color: Optional[Text] = ..., 8 | on_color: Optional[Text] = ..., 9 | attrs: Optional[Iterable[Text]] = ..., 10 | ) -> Text: 11 | ... 12 | 13 | 14 | def cprint( 15 | text: Text, 16 | color: Optional[Text] = ..., 17 | on_color: Optional[Text] = ..., 18 | attrs: Optional[Iterable[Text]] = ..., 19 | **kwargs: Any, 20 | ) -> None: 21 | ... 22 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3.6/secrets.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for secrets (Python 3.6) 2 | 3 | from typing import Optional, Sequence, TypeVar 4 | from hmac import compare_digest as compare_digest 5 | from random import SystemRandom as SystemRandom 6 | 7 | _T = TypeVar('_T') 8 | 9 | def randbelow(exclusive_upper_bound: int) -> int: ... 10 | def randbits(k: int) -> int: ... 11 | def choice(seq: Sequence[_T]) -> _T: ... 12 | def token_bytes(nbytes: Optional[int] = ...) -> bytes: ... 13 | def token_hex(nbytes: Optional[int] = ...) -> str: ... 14 | def token_urlsafe(nbytes: Optional[int] = ...) -> str: ... 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/XOR.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | 3 | __revision__ = ... # type: str 4 | 5 | class XORCipher: 6 | block_size = ... # type: int 7 | key_size = ... # type: int 8 | def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... 9 | def encrypt(self, plaintext: Union[bytes, Text]) -> bytes: ... 10 | def decrypt(self, ciphertext: bytes) -> bytes: ... 11 | 12 | 13 | def new(key: Union[bytes, Text], *args, **kwargs) -> XORCipher: ... 14 | 15 | block_size = ... # type: int 16 | key_size = ... # type: int 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/contrib/profiler.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | available = ... # type: Any 4 | 5 | class MergeStream: 6 | streams = ... # type: Any 7 | def __init__(self, *streams): ... 8 | def write(self, data): ... 9 | 10 | class ProfilerMiddleware: 11 | def __init__(self, app, stream=None, sort_by=..., restrictions=..., profile_dir=None): ... 12 | def __call__(self, environ, start_response): ... 13 | 14 | def make_action(app_factory, hostname='', port=5000, threaded=False, processes=1, stream=None, sort_by=..., restrictions=...): ... 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/runpy.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | class _TempModule: 4 | mod_name = ... # type: Any 5 | module = ... # type: Any 6 | def __init__(self, mod_name): ... 7 | def __enter__(self): ... 8 | def __exit__(self, *args): ... 9 | 10 | class _ModifiedArgv0: 11 | value = ... # type: Any 12 | def __init__(self, value): ... 13 | def __enter__(self): ... 14 | def __exit__(self, *args): ... 15 | 16 | def run_module(mod_name, init_globals=None, run_name=None, alter_sys=False): ... 17 | def run_path(path_name, init_globals=None, run_name=None): ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/_random.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for _random 2 | 3 | import sys 4 | from typing import Tuple 5 | 6 | # Actually Tuple[(int,) * 625] 7 | _State = Tuple[int, ...] 8 | 9 | class Random(object): 10 | def __init__(self, seed: object = ...) -> None: ... 11 | def seed(self, x: object = ...) -> None: ... 12 | def getstate(self) -> _State: ... 13 | def setstate(self, state: _State) -> None: ... 14 | def random(self) -> float: ... 15 | def getrandbits(self, k: int) -> int: ... 16 | if sys.version_info < (3,): 17 | def jumpahead(self, i: int) -> None: ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/runpy.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | class _TempModule: 4 | mod_name = ... # type: Any 5 | module = ... # type: Any 6 | def __init__(self, mod_name): ... 7 | def __enter__(self): ... 8 | def __exit__(self, *args): ... 9 | 10 | class _ModifiedArgv0: 11 | value = ... # type: Any 12 | def __init__(self, value): ... 13 | def __enter__(self): ... 14 | def __exit__(self, *args): ... 15 | 16 | def run_module(mod_name, init_globals=None, run_name=None, alter_sys=False): ... 17 | def run_path(path_name, init_globals=None, run_name=None): ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/attr/validators.pyi: -------------------------------------------------------------------------------- 1 | from typing import Container, List, Union, TypeVar, Type, Any, Optional, Tuple 2 | from . import _ValidatorType 3 | 4 | _T = TypeVar('_T') 5 | 6 | def instance_of(type: Union[Tuple[Type[_T], ...], Type[_T]]) -> _ValidatorType[_T]: ... 7 | def provides(interface: Any) -> _ValidatorType[Any]: ... 8 | def optional(validator: Union[_ValidatorType[_T], List[_ValidatorType[_T]]]) -> _ValidatorType[Optional[_T]]: ... 9 | def in_(options: Container[_T]) -> _ValidatorType[_T]: ... 10 | def and_(*validators: _ValidatorType[_T]) -> _ValidatorType[_T]: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/boto/s3/__init__.pyi: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from .connection import S3Connection 4 | 5 | from boto.connection import AWSAuthConnection 6 | from boto.regioninfo import RegionInfo 7 | 8 | from typing import List, Type, Text 9 | 10 | class S3RegionInfo(RegionInfo): 11 | def connect(self, name: Optional[Text] = ..., endpoint: Optional[str] = ..., connection_cls: Optional[Type[AWSAuthConnection]] = ..., **kw_params) -> S3Connection: ... 12 | 13 | def regions() -> List[S3RegionInfo]: ... 14 | def connect_to_region(region_name: Text, **kw_params): ... 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pynamodb/throttle.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | log: Any 4 | 5 | class ThrottleBase: 6 | capacity: Any 7 | window: Any 8 | records: Any 9 | sleep_interval: Any 10 | def __init__(self, capacity, window: int = ..., initial_sleep: Optional[Any] = ...) -> None: ... 11 | def add_record(self, record): ... 12 | def throttle(self): ... 13 | 14 | class NoThrottle(ThrottleBase): 15 | def __init__(self) -> None: ... 16 | def add_record(self, record): ... 17 | 18 | class Throttle(ThrottleBase): 19 | def throttle(self): ... 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/quoprimime.pyi: -------------------------------------------------------------------------------- 1 | def header_quopri_check(c): ... 2 | def body_quopri_check(c): ... 3 | def header_quopri_len(s): ... 4 | def body_quopri_len(str): ... 5 | def unquote(s): ... 6 | def quote(c): ... 7 | def header_encode(header, charset: str = ..., keep_eols: bool = ..., maxlinelen: int = ..., eol=...): ... 8 | def encode(body, binary: bool = ..., maxlinelen: int = ..., eol=...): ... 9 | 10 | body_encode = encode 11 | encodestring = encode 12 | 13 | def decode(encoded, eol=...): ... 14 | 15 | body_decode = decode 16 | decodestring = decode 17 | 18 | def header_decode(s): ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Hash/HMAC.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | digest_size = ... # type: Any 4 | 5 | class HMAC: 6 | digest_size = ... # type: Any 7 | digestmod = ... # type: Any 8 | outer = ... # type: Any 9 | inner = ... # type: Any 10 | def __init__(self, key, msg: Optional[Any] = ..., digestmod: Optional[Any] = ...) -> None: ... 11 | def update(self, msg): ... 12 | def copy(self): ... 13 | def digest(self): ... 14 | def hexdigest(self): ... 15 | 16 | def new(key, msg: Optional[Any] = ..., digestmod: Optional[Any] = ...): ... 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pymysql/constants/SERVER_STATUS.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | SERVER_STATUS_IN_TRANS = ... # type: Any 4 | SERVER_STATUS_AUTOCOMMIT = ... # type: Any 5 | SERVER_MORE_RESULTS_EXISTS = ... # type: Any 6 | SERVER_QUERY_NO_GOOD_INDEX_USED = ... # type: Any 7 | SERVER_QUERY_NO_INDEX_USED = ... # type: Any 8 | SERVER_STATUS_CURSOR_EXISTS = ... # type: Any 9 | SERVER_STATUS_LAST_ROW_SENT = ... # type: Any 10 | SERVER_STATUS_DB_DROPPED = ... # type: Any 11 | SERVER_STATUS_NO_BACKSLASH_ESCAPES = ... # type: Any 12 | SERVER_STATUS_METADATA_CHANGED = ... # type: Any 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/_heapq.pyi: -------------------------------------------------------------------------------- 1 | """Stub file for the '_heapq' module.""" 2 | 3 | from typing import TypeVar, List 4 | 5 | _T = TypeVar("_T") 6 | 7 | def heapify(heap: List[_T]) -> None: ... 8 | def heappop(heap: List[_T]) -> _T: 9 | raise IndexError() # if list is empty 10 | def heappush(heap: List[_T], item: _T) -> None: ... 11 | def heappushpop(heap: List[_T], item: _T) -> _T: ... 12 | def heapreplace(heap: List[_T], item: _T) -> _T: 13 | raise IndexError() # if list is empty 14 | def nlargest(a: int, b: List[_T]) -> List[_T]: ... 15 | def nsmallest(a: int, b: List[_T]) -> List[_T]: ... 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/PKCS1_OAEP.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional, Union, Text 2 | 3 | from Crypto.PublicKey.RSA import _RSAobj 4 | 5 | class PKCS1OAEP_Cipher: 6 | def __init__(self, key: _RSAobj, hashAlgo: Any, mgfunc: Any, label: Any) -> None: ... 7 | def can_encrypt(self): ... 8 | def can_decrypt(self): ... 9 | def encrypt(self, message: Union[bytes, Text]) -> bytes: ... 10 | def decrypt(self, ct: bytes) -> bytes: ... 11 | 12 | 13 | def new(key: _RSAobj, hashAlgo: Optional[Any] = ..., mgfunc: Optional[Any] = ..., label: Any = ...) -> PKCS1OAEP_Cipher: ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/distutils/archive_util.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for distutils.archive_util 2 | 3 | from typing import Optional 4 | 5 | 6 | def make_archive(base_name: str, format: str, root_dir: Optional[str] = ..., 7 | base_dir: Optional[str] = ..., verbose: int = ..., 8 | dry_run: int = ...) -> str: ... 9 | def make_tarball(base_name: str, base_dir: str, compress: Optional[str] = ..., 10 | verbose: int = ..., dry_run: int = ...) -> str: ... 11 | def make_zipfile(base_name: str, base_dir: str, verbose: int = ..., 12 | dry_run: int = ...) -> str: ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/Fortuna/FortunaGenerator.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | __revision__ = ... # type: str 4 | 5 | class AESGenerator: 6 | block_size = ... # type: Any 7 | key_size = ... # type: int 8 | max_blocks_per_request = ... # type: Any 9 | counter = ... # type: Any 10 | key = ... # type: Any 11 | block_size_shift = ... # type: Any 12 | blocks_per_key = ... # type: Any 13 | max_bytes_per_request = ... # type: Any 14 | def __init__(self) -> None: ... 15 | def reseed(self, seed): ... 16 | def pseudo_random_data(self, bytes): ... 17 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/duration_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from google.protobuf.internal import well_known_types 5 | 6 | from typing import ( 7 | Optional, 8 | ) 9 | 10 | 11 | class Duration(Message, well_known_types.Duration): 12 | seconds = ... # type: int 13 | nanos = ... # type: int 14 | 15 | def __init__(self, 16 | seconds: Optional[int] = ..., 17 | nanos: Optional[int] = ..., 18 | ) -> None: ... 19 | 20 | @classmethod 21 | def FromString(cls, s: bytes) -> Duration: ... 22 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/any_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from google.protobuf.internal import well_known_types 5 | 6 | from typing import ( 7 | Optional, 8 | Text, 9 | ) 10 | 11 | 12 | class Any(Message, well_known_types.Any_): 13 | type_url = ... # type: Text 14 | value = ... # type: bytes 15 | 16 | def __init__(self, 17 | type_url: Optional[Text] = ..., 18 | value: Optional[bytes] = ..., 19 | ) -> None: ... 20 | 21 | @classmethod 22 | def FromString(cls, s: bytes) -> Any: ... 23 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/timestamp_pb2.pyi: -------------------------------------------------------------------------------- 1 | from google.protobuf.message import ( 2 | Message, 3 | ) 4 | from google.protobuf.internal import well_known_types 5 | 6 | from typing import ( 7 | Optional, 8 | ) 9 | 10 | 11 | class Timestamp(Message, well_known_types.Timestamp): 12 | seconds = ... # type: int 13 | nanos = ... # type: int 14 | 15 | def __init__(self, 16 | seconds: Optional[int] = ..., 17 | nanos: Optional[int] = ..., 18 | ) -> None: ... 19 | 20 | @classmethod 21 | def FromString(cls, s: bytes) -> Timestamp: ... 22 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/site.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for site 2 | 3 | from typing import List, Iterable, Optional 4 | import sys 5 | 6 | PREFIXES = ... # type: List[str] 7 | ENABLE_USER_SITE = ... # type: Optional[bool] 8 | USER_SITE = ... # type: Optional[str] 9 | USER_BASE = ... # type: Optional[str] 10 | 11 | if sys.version_info < (3,): 12 | def main() -> None: ... 13 | def addsitedir(sitedir: str, 14 | known_paths: Optional[Iterable[str]] = ...) -> None: ... 15 | def getsitepackages(prefixes: Optional[Iterable[str]] = ...) -> List[str]: ... 16 | def getuserbase() -> str: ... 17 | def getusersitepackages() -> str: ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/uu.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for uu (Python 2 and 3) 2 | import sys 3 | from typing import BinaryIO, Union, Optional, Text 4 | 5 | _File = Union[Text, BinaryIO] 6 | 7 | class Error(Exception): ... 8 | 9 | if sys.version_info >= (3, 7): 10 | def encode(in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ..., backtick: bool = ...) -> None: ... 11 | else: 12 | def encode(in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ...) -> None: ... 13 | def decode(in_file: _File, out_file: Optional[_File] = ..., mode: Optional[int] = ..., quiet: int = ...) -> None: ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Random/random.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | class StrongRandom: 4 | def __init__(self, rng: Optional[Any] = ..., randfunc: Optional[Any] = ...) -> None: ... 5 | def getrandbits(self, k): ... 6 | def randrange(self, *args): ... 7 | def randint(self, a, b): ... 8 | def choice(self, seq): ... 9 | def shuffle(self, x): ... 10 | def sample(self, population, k): ... 11 | 12 | getrandbits = ... # type: Any 13 | randrange = ... # type: Any 14 | randint = ... # type: Any 15 | choice = ... # type: Any 16 | shuffle = ... # type: Any 17 | sample = ... # type: Any 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/click/README.md: -------------------------------------------------------------------------------- 1 | # click 6.6, Python 3 2 | 3 | `__init__.pyi` is literally a copy of click/__init__.py. It's a shortcut module 4 | anyway in the actual sources so it works well without additional changes. 5 | 6 | The types are pretty complete but they were created mostly for public API use 7 | so some internal modules (`_compat`) or functions (`core._bashcomplete`) are 8 | deliberately missing. If you feel the need to add those, pull requests accepted. 9 | 10 | Speaking of pull requests, it would be great if the option decorators informed 11 | the type checker on what types the command callback should accept. 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/google/protobuf/message_factory.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Dict, Iterable, Optional, Type 2 | 3 | from .message import Message 4 | from .descriptor import Descriptor 5 | from .descriptor_pool import DescriptorPool 6 | 7 | class MessageFactory: 8 | pool = ... # type: Any 9 | def __init__(self, pool: Optional[DescriptorPool] = ...) -> None: ... 10 | def GetPrototype(self, descriptor: Descriptor) -> Type[Message]: ... 11 | def GetMessages(self, files: Iterable[bytes]) -> Dict[bytes, Type[Message]]: ... 12 | 13 | def GetMessages(file_protos: Iterable[bytes]) -> Dict[bytes, Type[Message]]: ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/email/feedparser.pyi: -------------------------------------------------------------------------------- 1 | class BufferedSubFile: 2 | def __init__(self) -> None: ... 3 | def push_eof_matcher(self, pred) -> None: ... 4 | def pop_eof_matcher(self): ... 5 | def close(self) -> None: ... 6 | def readline(self): ... 7 | def unreadline(self, line) -> None: ... 8 | def push(self, data): ... 9 | def pushlines(self, lines) -> None: ... 10 | def is_closed(self): ... 11 | def __iter__(self): ... 12 | def next(self): ... 13 | 14 | 15 | class FeedParser: 16 | def __init__(self, _factory=...) -> None: ... 17 | def feed(self, data) -> None: ... 18 | def close(self): ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/script.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | argument_types = ... # type: Any 4 | converters = ... # type: Any 5 | 6 | def run(namespace=None, action_prefix='', args=None): ... 7 | def fail(message, code=-1): ... 8 | def find_actions(namespace, action_prefix): ... 9 | def print_usage(actions): ... 10 | def analyse_action(func): ... 11 | def make_shell(init_func=None, banner=None, use_ipython=True): ... 12 | def make_runserver(app_factory, hostname='', port=5000, use_reloader=False, use_debugger=False, use_evalex=True, threaded=False, processes=1, static_files=None, extra_files=None, ssl_context=None): ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/_bisect.pyi: -------------------------------------------------------------------------------- 1 | """Stub file for the '_bisect' module.""" 2 | 3 | from typing import Sequence, TypeVar 4 | 5 | _T = TypeVar('_T') 6 | def bisect(a: Sequence[_T], x: _T, lo: int = ..., hi: int = ...) -> int: ... 7 | def bisect_left(a: Sequence[_T], x: _T, lo: int = ..., hi: int = ...) -> int: ... 8 | def bisect_right(a: Sequence[_T], x: _T, lo: int = ..., hi: int = ...) -> int: ... 9 | def insort(a: Sequence[_T], x: _T, lo: int = ..., hi: int = ...) -> None: ... 10 | def insort_left(a: Sequence[_T], x: _T, lo: int = ..., hi: int = ...) -> None: ... 11 | def insort_right(a: Sequence[_T], x: _T, lo: int = ..., hi: int = ...) -> None: ... 12 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/pymysql/err.pyi: -------------------------------------------------------------------------------- 1 | from typing import Dict 2 | from .constants import ER as ER 3 | 4 | class MySQLError(Exception): ... 5 | class Warning(MySQLError): ... 6 | class Error(MySQLError): ... 7 | class InterfaceError(Error): ... 8 | class DatabaseError(Error): ... 9 | class DataError(DatabaseError): ... 10 | class OperationalError(DatabaseError): ... 11 | class IntegrityError(DatabaseError): ... 12 | class InternalError(DatabaseError): ... 13 | class ProgrammingError(DatabaseError): ... 14 | class NotSupportedError(DatabaseError): ... 15 | 16 | error_map = ... # type: Dict 17 | 18 | def raise_mysql_exception(data) -> None: ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/AES.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | from .blockalgo import BlockAlgo 3 | 4 | __revision__ = ... # type: str 5 | 6 | class AESCipher(BlockAlgo): 7 | def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... 8 | 9 | def new(key: Union[bytes, Text], *args, **kwargs) -> AESCipher: ... 10 | 11 | MODE_ECB = ... # type: int 12 | MODE_CBC = ... # type: int 13 | MODE_CFB = ... # type: int 14 | MODE_PGP = ... # type: int 15 | MODE_OFB = ... # type: int 16 | MODE_CTR = ... # type: int 17 | MODE_OPENPGP = ... # type: int 18 | block_size = ... # type: int 19 | key_size = ... # type: int 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/DES.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | from .blockalgo import BlockAlgo 3 | 4 | __revision__ = ... # type: str 5 | 6 | class DESCipher(BlockAlgo): 7 | def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... 8 | 9 | def new(key: Union[bytes, Text], *args, **kwargs) -> DESCipher: ... 10 | 11 | MODE_ECB = ... # type: int 12 | MODE_CBC = ... # type: int 13 | MODE_CFB = ... # type: int 14 | MODE_PGP = ... # type: int 15 | MODE_OFB = ... # type: int 16 | MODE_CTR = ... # type: int 17 | MODE_OPENPGP = ... # type: int 18 | block_size = ... # type: int 19 | key_size = ... # type: int 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/encodings/utf_8.pyi: -------------------------------------------------------------------------------- 1 | import codecs 2 | from typing import Text, Tuple 3 | 4 | class IncrementalEncoder(codecs.IncrementalEncoder): 5 | def encode(self, input: Text, final: bool = ...) -> bytes: ... 6 | 7 | class IncrementalDecoder(codecs.BufferedIncrementalDecoder): 8 | def _buffer_decode(self, input: bytes, errors: str, final: bool) -> Tuple[Text, int]: ... 9 | 10 | class StreamWriter(codecs.StreamWriter): ... 11 | class StreamReader(codecs.StreamReader): ... 12 | 13 | def getregentry() -> codecs.CodecInfo: ... 14 | def encode(input: Text, errors: Text = ...) -> bytes: ... 15 | def decode(input: bytes, errors: Text = ...) -> Text: ... 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/linecache.pyi: -------------------------------------------------------------------------------- 1 | import sys 2 | from typing import Any, Dict, List, Optional, Text 3 | 4 | _ModuleGlobals = Dict[str, Any] 5 | 6 | def getline(filename: Text, lineno: int, module_globals: Optional[_ModuleGlobals] = ...) -> str: ... 7 | def clearcache() -> None: ... 8 | def getlines(filename: Text, module_globals: Optional[_ModuleGlobals] = ...) -> List[str]: ... 9 | def checkcache(filename: Optional[Text] = ...) -> None: ... 10 | def updatecache(filename: Text, module_globals: Optional[_ModuleGlobals] = ...) -> List[str]: ... 11 | if sys.version_info >= (3, 5): 12 | def lazycache(filename: Text, module_globals: _ModuleGlobals) -> bool: ... 13 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/encodings/utf_8.pyi: -------------------------------------------------------------------------------- 1 | import codecs 2 | from typing import Text, Tuple 3 | 4 | class IncrementalEncoder(codecs.IncrementalEncoder): 5 | def encode(self, input: Text, final: bool = ...) -> bytes: ... 6 | 7 | class IncrementalDecoder(codecs.BufferedIncrementalDecoder): 8 | def _buffer_decode(self, input: bytes, errors: str, final: bool) -> Tuple[Text, int]: ... 9 | 10 | class StreamWriter(codecs.StreamWriter): ... 11 | class StreamReader(codecs.StreamReader): ... 12 | 13 | def getregentry() -> codecs.CodecInfo: ... 14 | def encode(input: Text, errors: Text = ...) -> bytes: ... 15 | def decode(input: bytes, errors: Text = ...) -> Text: ... 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/ARC2.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | from .blockalgo import BlockAlgo 3 | 4 | __revision__ = ... # type: str 5 | 6 | class RC2Cipher(BlockAlgo): 7 | def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... 8 | 9 | def new(key: Union[bytes, Text], *args, **kwargs) -> RC2Cipher: ... 10 | 11 | MODE_ECB = ... # type: int 12 | MODE_CBC = ... # type: int 13 | MODE_CFB = ... # type: int 14 | MODE_PGP = ... # type: int 15 | MODE_OFB = ... # type: int 16 | MODE_CTR = ... # type: int 17 | MODE_OPENPGP = ... # type: int 18 | block_size = ... # type: int 19 | key_size = ... # type: int 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/werkzeug/_internal.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | 3 | class _Missing: 4 | def __reduce__(self): ... 5 | 6 | class _DictAccessorProperty: 7 | read_only = ... # type: Any 8 | name = ... # type: Any 9 | default = ... # type: Any 10 | load_func = ... # type: Any 11 | dump_func = ... # type: Any 12 | __doc__ = ... # type: Any 13 | def __init__(self, name, default=None, load_func=None, dump_func=None, read_only=None, doc=None): ... 14 | def __get__(self, obj, type=None): ... 15 | def __set__(self, obj, value): ... 16 | def __delete__(self, obj): ... 17 | 18 | def _easteregg(app=None): ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/CAST.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | from .blockalgo import BlockAlgo 3 | 4 | __revision__ = ... # type: str 5 | 6 | class CAST128Cipher(BlockAlgo): 7 | def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... 8 | 9 | def new(key: Union[bytes, Text], *args, **kwargs) -> CAST128Cipher: ... 10 | 11 | MODE_ECB = ... # type: int 12 | MODE_CBC = ... # type: int 13 | MODE_CFB = ... # type: int 14 | MODE_PGP = ... # type: int 15 | MODE_OFB = ... # type: int 16 | MODE_CTR = ... # type: int 17 | MODE_OPENPGP = ... # type: int 18 | block_size = ... # type: int 19 | key_size = ... # type: Any 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/DES3.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | 3 | from .blockalgo import BlockAlgo 4 | 5 | __revision__ = ... # type: str 6 | 7 | class DES3Cipher(BlockAlgo): 8 | def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... 9 | 10 | def new(key: Union[bytes, Text], *args, **kwargs) -> DES3Cipher: ... 11 | 12 | MODE_ECB = ... # type: int 13 | MODE_CBC = ... # type: int 14 | MODE_CFB = ... # type: int 15 | MODE_PGP = ... # type: int 16 | MODE_OFB = ... # type: int 17 | MODE_CTR = ... # type: int 18 | MODE_OPENPGP = ... # type: int 19 | block_size = ... # type: int 20 | key_size = ... # type: Any 21 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/compileall.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for compileall (Python 2) 2 | 3 | from typing import Optional, Pattern, Union 4 | 5 | _Path = Union[str, bytes] 6 | 7 | # rx can be any object with a 'search' method; once we have Protocols we can change the type 8 | def compile_dir(dir: _Path, maxlevels: int = ..., ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ...) -> int: ... 9 | def compile_file(fullname: _Path, ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ...) -> int: ... 10 | def compile_path(skip_curdir: bool = ..., maxlevels: int = ..., force: bool = ..., quiet: int = ...) -> int: ... 11 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/Blowfish.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | from .blockalgo import BlockAlgo 3 | 4 | __revision__ = ... # type: str 5 | 6 | class BlowfishCipher(BlockAlgo): 7 | def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ... 8 | 9 | def new(key: Union[bytes, Text], *args, **kwargs) -> BlowfishCipher: ... 10 | 11 | MODE_ECB = ... # type: int 12 | MODE_CBC = ... # type: int 13 | MODE_CFB = ... # type: int 14 | MODE_PGP = ... # type: int 15 | MODE_OFB = ... # type: int 16 | MODE_CTR = ... # type: int 17 | MODE_OPENPGP = ... # type: int 18 | block_size = ... # type: int 19 | key_size = ... # type: Any 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/PublicKey/ElGamal.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Optional 2 | 3 | from Crypto.PublicKey.pubkey import pubkey 4 | from Crypto.PublicKey.pubkey import * # noqa: F403 5 | 6 | class error(Exception): ... 7 | 8 | def generate(bits, randfunc, progress_func: Optional[Any] = ...): ... 9 | def construct(tup): ... 10 | 11 | class ElGamalobj(pubkey): 12 | keydata = ... # type: Any 13 | def encrypt(self, plaintext, K): ... 14 | def decrypt(self, ciphertext): ... 15 | def sign(self, M, K): ... 16 | def verify(self, M, signature): ... 17 | def size(self): ... 18 | def has_private(self): ... 19 | def publickey(self): ... 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2/getopt.pyi: -------------------------------------------------------------------------------- 1 | from typing import List, Tuple 2 | 3 | class GetoptError(Exception): 4 | opt = ... # type: str 5 | msg = ... # type: str 6 | def __init__(self, msg: str, opt: str=...) -> None: ... 7 | def __str__(self) -> str: ... 8 | 9 | error = GetoptError 10 | 11 | def getopt(args: List[str], shortopts: str, 12 | longopts: List[str]=...) -> Tuple[List[Tuple[str, str]], 13 | List[str]]: ... 14 | 15 | def gnu_getopt(args: List[str], shortopts: str, 16 | longopts: List[str]=...) -> Tuple[List[Tuple[str, str]], 17 | List[str]]: ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/getopt.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for getopt 2 | 3 | # Based on http://docs.python.org/3.2/library/getopt.html 4 | 5 | from typing import List, Tuple 6 | 7 | def getopt(args: List[str], shortopts: str, 8 | longopts: List[str]=...) -> Tuple[List[Tuple[str, str]], 9 | List[str]]: ... 10 | 11 | def gnu_getopt(args: List[str], shortopts: str, 12 | longopts: List[str]=...) -> Tuple[List[Tuple[str, str]], 13 | List[str]]: ... 14 | 15 | class GetoptError(Exception): 16 | msg = ... # type: str 17 | opt = ... # type: str 18 | 19 | error = GetoptError 20 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2/redis/exceptions.pyi: -------------------------------------------------------------------------------- 1 | class RedisError(Exception): ... 2 | 3 | def __unicode__(self): ... 4 | 5 | class AuthenticationError(RedisError): ... 6 | class ConnectionError(RedisError): ... 7 | class TimeoutError(RedisError): ... 8 | class BusyLoadingError(ConnectionError): ... 9 | class InvalidResponse(RedisError): ... 10 | class ResponseError(RedisError): ... 11 | class DataError(RedisError): ... 12 | class PubSubError(RedisError): ... 13 | class WatchError(RedisError): ... 14 | class NoScriptError(ResponseError): ... 15 | class ExecAbortError(ResponseError): ... 16 | class ReadOnlyError(ResponseError): ... 17 | class LockError(RedisError, ValueError): ... 18 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/third_party/2and3/Crypto/Cipher/blockalgo.pyi: -------------------------------------------------------------------------------- 1 | from typing import Any, Union, Text 2 | 3 | MODE_ECB = ... # type: int 4 | MODE_CBC = ... # type: int 5 | MODE_CFB = ... # type: int 6 | MODE_PGP = ... # type: int 7 | MODE_OFB = ... # type: int 8 | MODE_CTR = ... # type: int 9 | MODE_OPENPGP = ... # type: int 10 | 11 | class BlockAlgo: 12 | mode = ... # type: int 13 | block_size = ... # type: int 14 | IV = ... # type: Any 15 | def __init__(self, factory: Any, key: Union[bytes, Text], *args, **kwargs) -> None: ... 16 | def encrypt(self, plaintext: Union[bytes, Text]) -> bytes: ... 17 | def decrypt(self, ciphertext: bytes) -> bytes: ... 18 | -------------------------------------------------------------------------------- /src/UnitTests/TestData/Grammar/LiteralsV3.py: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | 111222333444 4 | u"unicode string" 5 | U"unicode string" 6 | ur"raw unicode" 7 | UR"raw unicode" 8 | Ur"raw unicode" 9 | uR"raw unicode" 10 | u"""unicode string""" 11 | U"""unicode string""" 12 | ur"""raw unicode""" 13 | UR"""raw unicode""" 14 | Ur"""raw unicode""" 15 | uR"""raw unicode""" 16 | u'unicode string' 17 | U'unicode string' 18 | ur'raw unicode' 19 | UR'raw unicode' 20 | Ur'raw unicode' 21 | uR'raw unicode' 22 | u'''unicode string''' 23 | U'''unicode string''' 24 | ur'''raw unicode''' 25 | UR'''raw unicode''' 26 | Ur'''raw unicode''' 27 | uR'''raw unicode''' 28 | u"\ 29 | \\\'\"\a\b\f\n\r\t\u2026\v\052\x2A" 30 | u'\N{COLON}' 31 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/__future__.pyi: -------------------------------------------------------------------------------- 1 | import sys 2 | from typing import List 3 | 4 | class _Feature: 5 | def getOptionalRelease(self) -> sys._version_info: ... 6 | def getMandatoryRelease(self) -> sys._version_info: ... 7 | 8 | absolute_import: _Feature 9 | division: _Feature 10 | generators: _Feature 11 | nested_scopes: _Feature 12 | print_function: _Feature 13 | unicode_literals: _Feature 14 | with_statement: _Feature 15 | if sys.version_info >= (3, 0): 16 | barry_as_FLUFL: _Feature 17 | 18 | if sys.version_info >= (3, 5): 19 | generator_stop: _Feature 20 | 21 | if sys.version_info >= (3, 7): 22 | annotations: _Feature 23 | 24 | all_feature_names: List[str] 25 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/2and3/pwd.pyi: -------------------------------------------------------------------------------- 1 | from typing import List, NamedTuple 2 | 3 | struct_passwd = NamedTuple("struct_passwd", [("pw_name", str), 4 | ("pw_passwd", str), 5 | ("pw_uid", int), 6 | ("pw_gid", int), 7 | ("pw_gecos", str), 8 | ("pw_dir", str), 9 | ("pw_shell", str)]) 10 | 11 | def getpwall() -> List[struct_passwd]: ... 12 | def getpwuid(uid: int) -> struct_passwd: ... 13 | def getpwnam(name: str) -> struct_passwd: ... 14 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/_posixsubprocess.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for _posixsubprocess 2 | 3 | # NOTE: These are incomplete! 4 | 5 | from typing import Tuple, Sequence, Callable 6 | 7 | def cloexec_pipe() -> Tuple[int, int]: ... 8 | def fork_exec(args: Sequence[str], 9 | executable_list: Sequence[bytes], close_fds: bool, fds_to_keep: Sequence[int], 10 | cwd: str, env_list: Sequence[bytes], 11 | p2cread: int, p2cwrite: int, c2pred: int, c2pwrite: int, 12 | errread: int, errwrite: int, errpipe_read: int, 13 | errpipe_write: int, restore_signals: int, start_new_session: int, 14 | preexec_fn: Callable[[], None]) -> int: ... 15 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/contentmanager.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.contentmanager (Python 3.4) 2 | 3 | from typing import Any, Callable 4 | from email.message import Message 5 | 6 | class ContentManager: 7 | def __init__(self) -> None: ... 8 | def get_content(self, msg: Message, *args: Any, **kw: Any) -> Any: ... 9 | def set_content(self, msg: Message, obj: Any, *args: Any, 10 | **kw: Any) -> Any: ... 11 | def add_get_handler(self, key: str, handler: Callable[..., Any]) -> None: ... 12 | def add_set_handler(self, typekey: type, 13 | handler: Callable[..., Any]) -> None: ... 14 | 15 | raw_data_manager = ... # type: ContentManager 16 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/email/feedparser.pyi: -------------------------------------------------------------------------------- 1 | # Stubs for email.feedparser (Python 3.4) 2 | 3 | from typing import Callable 4 | import sys 5 | from email.message import Message 6 | from email.policy import Policy 7 | 8 | class FeedParser: 9 | def __init__(self, _factory: Callable[[], Message] = ..., *, 10 | policy: Policy = ...) -> None: ... 11 | def feed(self, data: str) -> None: ... 12 | def close(self) -> Message: ... 13 | 14 | class BytesFeedParser: 15 | def __init__(self, _factory: Callable[[], Message] = ..., *, 16 | policy: Policy = ...) -> None: ... 17 | def feed(self, data: str) -> None: ... 18 | def close(self) -> Message: ... 19 | -------------------------------------------------------------------------------- /src/Analysis/Ast/Impl/Typeshed/stdlib/3/_threading_local.pyi: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/python/cpython/blob/master/Lib/_threading_local.py 2 | from typing import Any, Dict, List, Tuple 3 | from weakref import ReferenceType 4 | 5 | __all__: List[str] 6 | localdict = Dict[Any, Any] 7 | 8 | class _localimpl: 9 | key: str 10 | dicts: Dict[int, Tuple[ReferenceType, localdict]] 11 | def __init__(self) -> None: ... 12 | def get_dict(self) -> localdict: ... 13 | def create_dict(self) -> localdict: ... 14 | 15 | class local: 16 | def __getattribute__(self, name: str) -> Any: ... 17 | def __setattr__(self, name: str, value: Any) -> None: ... 18 | def __delattr__(self, name: str) -> None: ... 19 | --------------------------------------------------------------------------------