Skip to content

Commit

Permalink
fix: Remove the incompatible code
Browse files Browse the repository at this point in the history
Fix #375
  • Loading branch information
frostming committed Apr 3, 2021
1 parent f71eec6 commit 8e35c02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions news/375.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the incompatible code from the files that will be run in-process.
9 changes: 2 additions & 7 deletions pdm/pep508.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
from __future__ import annotations

import json
import os
import platform
import sys
from typing import TYPE_CHECKING, Dict

if TYPE_CHECKING:
version_info = sys._version_info
from typing import Dict


def format_full_version(info: version_info) -> str:
def format_full_version(info) -> str: # type: ignore
version = f"{info.major}.{info.minor}.{info.micro}"
kind = info.releaselevel
if kind != "final":
Expand Down

0 comments on commit 8e35c02

Please sign in to comment.