netromdk / vermin

Concurrently detect the minimum Python versions needed to run code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vermin reporting `type` function for Python <2.2

LukeSavefrogs opened this issue · comments

Hi @netromdk.
I start by saying that this tool is amazing and really helps.

However i didn't understand this error i keep getting from Vermin...

Description

Sadly, at work I need to target Python (actually it's Jython) version 2.1...

vermin reports that 'type' member requires 2.2 while it is present in Python 2.1:

2.2, 3.0     D:\Progetti\python2-json\json.py
  print(expr) requires 2.0, 3.0
  L45 C20: 'type' member requires 2.2, 3.0
  L75: Ignoring member 'obj' because it's user-defined!

Environment:

  • Vermin: v1.5.1
  • OS: Windows 10

Configuration file

# It contains all config options with default values commented out.
# The file is typically renamed as "vermin.ini" when copied into a project.

[vermin]
### Verbosity ###
# Verbosity level 1 to 4. -v, -vv, -vvv, and -vvvv shows increasingly more information. Turned off
# at level 0.
#
verbose = 1


### Matching target versions ###
targets = 2.1
                3.0

### Tips ###
show_tips = yes

### Format ###
format = default

### Parse comments ###
parse_comments = no

That's great to hear and thanks for the feedback.

I see it's actually present already in version 2.0.

I'm gonna make a fix for that now.

There we go. Thanks again!

Such a quick response!!

Thank you so much @netromdk 😍

Could you please push an update on PyPi, so we can download the fix right away?

Thank you again for your great work! 🎉

You are very welcome! I have a few other fixes in the pipeline but I'm trying to get it in the next few days.

Refer

Great to hear!

I'll gladly wait for it 😁