PY-19399 Prohibit intention "Convert collection to set" for empty collections appcode/146.1665 clion/146.1664
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Mon, 2 May 2016 19:08:51 +0000 (22:08 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Tue, 3 May 2016 11:54:01 +0000 (14:54 +0300)
commitddc4bdda56427b3c70b8ac6d040ef2b80b4a12b8
treea092e4b32577cd26ce9d0da46189b45fcc5b363d
parent105c368c091686ceba5fa30648138184e5a123b8
PY-19399 Prohibit intention "Convert collection to set" for empty collections

since there is no literal for empty set in Python.
python/src/com/jetbrains/python/codeInsight/intentions/PyBaseConvertCollectionLiteralIntention.java
python/src/com/jetbrains/python/codeInsight/intentions/PyConvertLiteralToSetIntention.java
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/cannotConvertEmptyListToSet.py [new file with mode: 0644]
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/cannotConvertEmptyTupleToSet.py [new file with mode: 0644]
python/testSrc/com/jetbrains/python/intentions/PyConvertCollectionLiteralIntentionTest.java