.PYI 파일 확장자

Python Interface Definition

개발사 Python Software Foundation
인기도
4.2  |  5 투표
 

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.

추가 정보

Microsoft Visual Studio Code에서 열린 .pyi 파일의 스크린샷
Microsoft Visual Studio Code에서 열린 PYI 파일

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.

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.

File Viewer Plus(으)로 400개 이상의 파일 형식을 여세요.무료 다운로드

PYI 파일을 여는 프로그램

Windows
Linux
카테고리: 개발자
업데이트: 2022-03-21

검증자 FileInfo.com

FileInfo.com 팀 이 페이지에 나열된 Python Interface Definition 파일 형식과 Mac, Windows, and Linux 앱을 독자적으로 조사했습니다. 저희의 목표는 100% 정확성이며, 검증한 파일 유형에 대한 정보만 게시합니다.

이 페이지에 추가하거나 업데이트할 내용을 제안하고 싶으시면 알려 주세요.