.PYI Rozszerzenie pliku

Python Interface Definition

Deweloper Python Software Foundation
Popularność
4.2  |  5 Głosów
 

Czym jest plik PYI?

A PYI file is a code stub used to specify type hints for a Python module. Python type checkers can read PYI files and use them to warn developers of potential type mismatches. PYI files have the same syntax as regular Python modules; they are typically stored alongside the module for which they contain type hints.

Więcej informacji

Zrzut ekranu pliku .pyi w Microsoft Visual Studio Code
Plik PYI otwarty w Microsoft Visual Studio Code

Because Python is a dynamically-typed programming language, the Python interpreter performs type checking only when code runs. However, some Python code editors allow developers to manually define and check a module's types while coding, using PYI files. That way, developers can catch and fix type errors before attempting to run their program.

For example, JetBrains PyCharm allows developers to check types using PYI files. If a developer's code creates a mismatch between a module's actual and defined types, PyCharm will warn the developer.

Jak otworzyć plik PYI

You can open and edit a PYI file in any text or source code editor. Source code editors, such as Microsoft Visual Studio Code (multiplatform), Sublime Text (multiplatform), and JetBrains PyCharm (multiplatform), provide helpful syntax-highlighting and code-editing tools that make reviewing and editing PYI files easier.

Otwórz ponad 400 formatów plików za pomocą File Viewer Plus.Bezpłatne pobieranie

Programy otwierające pliki PYI

Windows
Dołączony do systemu
Bezpłatny
Bezpłatna wersja próbna
Mac
Bezpłatna wersja próbna
Linux
Bezpłatny
Bezpłatny
Bezpłatna wersja próbna

Zweryfikowane przez FileInfo.com

Zespół FileInfo.com niezależnie zbadał format pliku Python Interface Definition oraz aplikacje Mac, Windows, and Linux wymienione na tej stronie. Naszym celem jest 100% dokładność i publikujemy wyłącznie informacje o zweryfikowanych typach plików.

Jeśli chcesz zaproponować dodatki lub aktualizacje tej strony, daj nam znać.