We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b99738 commit 317b3f2Copy full SHA for 317b3f2
_pytest/config.py
@@ -552,11 +552,18 @@ def __str__(self):
552
553
554
class Argument:
555
- """class that mimics the necessary behaviour of optparse.Option """
+ """class that mimics the necessary behaviour of optparse.Option
556
+
557
+ its currently a least effort implementation
558
+ and ignoring choices and integer prefixes
559
+ https://docs.python.org/3/library/optparse.html#optparse-standard-option-types
560
+ """
561
_typ_map = {
562
'int': int,
563
'string': str,
- }
564
+ 'float': float,
565
+ 'complex': complex,
566
+ }
567
# enable after some grace period for plugin writers
568
TYPE_WARN = False
569
0 commit comments