Commit Graph

33 Commits

Author SHA1 Message Date
Mikhail Golubev
e6ec37ccfe PY-19705 Add blanks lines around methods of a class as required by PEP 8 2017-07-28 15:23:31 +03:00
Andrey Vlasovskikh
b0b03f3a45 Don't use function annotations in overridden functions in Python 2
Python stubs use Python 3 syntax so it could be the case that a Python 2
class inherits a Python 3 class.
2017-02-02 01:29:37 +03:00
Ilya.Kazakevich
8eed6b44ca PY-16063 Fixes according to review:
* Using ancestor types to prevent SO
* Contexts are passed
2015-09-03 22:21:42 +03:00
Mikhail Golubev
5c4b6ceaa4 PY-15791 Force spaces around "=" sign preceding default value of annotated parameter 2015-07-16 19:15:11 +03:00
Andrey Vlasovskikh
a1476e9c85 Revert "PY-16078 Default right margin is 99 characters according to updated PEP-8"
This reverts commit 2175deac00.
2015-06-29 20:00:33 +03:00
Mikhail Golubev
2175deac00 PY-16078 Default right margin is 99 characters according to updated PEP-8 2015-06-03 13:48:22 +03:00
Mikhail Golubev
6b5ea8f750 PY-16050 Formatter inserts exactly one space after ":" and "->" in annotations 2015-05-27 22:45:01 +03:00
Mikhail Golubev
bd1ab5f421 PY-15629 Always explicitly pass first argument in "__new__" method of the base class
Additionally return statement is always added in these methods as well.
2015-04-20 18:57:40 +03:00
Mikhail Golubev
a1b56a7909 PY-11127 Consider case where only class name is used in raise statment 2014-11-04 17:49:27 +03:00
Mikhail Golubev
9574f68583 PY-11127 Do not generate call of base method if it raises NotImplementedError 2014-10-31 12:39:30 +03:00
Ekaterina Tuzova
c091cfdf37 fixed PY-13884 "Override Methods" loses @staticmethod decorator from parent 2014-09-15 17:12:29 +04:00
Ekaterina Tuzova
50bd74d1f1 fixed PY-12545 Override method: generated incorrect super call for local classes 2014-04-01 19:59:44 +04:00
Ekaterina Tuzova
21e2c1debc fixed PY-11484 Implement abstract method: pushes docstring out of the way 2014-01-24 12:21:44 +04:00
Ekaterina Tuzova
1e17c7aa78 fixed PY-10848 Implement abstract method: do not insert super call for abstract method implementations 2013-10-14 12:45:45 +02:00
Ekaterina Tuzova
c8fc10393f fixed test data 2013-10-10 13:11:17 +04:00
Ekaterina Tuzova
70d3040b08 fixed PY-10976 Method override in nested class generated with incorrect super call 2013-10-08 20:30:05 +04:00
Andrey Vlasovskikh
79395feed7 Fixed overriding instance and subclass checks for types (PY-10229) 2013-09-13 18:03:20 +04:00
Andrey Vlasovskikh
9031552f27 Updated Python mock SDK from 2.5 to 2.7
The __namedtuple stub is now in __builtins__.
2013-02-12 20:59:07 +04:00
Roman Shevchenko
bef3b08ecf line separators normalized 2012-12-08 20:41:27 +01:00
Dmitry Jemerov
fe9b346fe1 fix regression in override method with **kwargs 2012-08-31 18:38:50 +02:00
Dmitry Jemerov
c1dcb3954e fix handling of star arguments in override method (PY-6455) 2012-08-07 15:16:13 +02:00
Dmitry Jemerov
a5edf81379 correctly handle return annotations in 'override' and formatter (PY-2690) 2011-01-14 18:50:57 +01:00
Dmitry Jemerov
f0025c6e2e use correct language level when building overridden method (PY-2547) 2010-12-19 16:20:50 +03:00
Dmitry Jemerov
7984d553b0 Override generates correct reference to superclass (PY-2171) 2010-10-27 21:55:10 +04:00
Dmitry Jemerov
932503c4dc fix indent in specific case after PSI modifications (PY-1796) 2010-09-14 21:21:54 +04:00
Dmitry Jemerov
e20f472cff use correct first parameter name (PY-1811) 2010-09-14 21:21:53 +04:00
Dmitry Jemerov
7233c2b714 generate 'return' before super method call in Override Methods if appropriate (PY-1537) 2010-08-17 21:35:47 +04:00
Dmitry Jemerov
c0aca39007 override doesn't pass default parameter values to super method (PY-1332) 2010-07-19 16:27:12 +04:00
Dmitry Jemerov
748043bc5d correctly build argument list for super method call (PY-1269) 2010-07-14 22:54:09 +04:00
Dmitry Jemerov
5565a2e065 'Override method' inserts super method call instead of 'pass' (PY-302) 2010-07-12 22:43:59 +04:00
alexey.ivanov
e1af90dfb6 PY-943 Override method should insert @classmethod decorator for classmethods 2010-05-06 17:49:48 +04:00
alexey.ivanov
e25faeb08d test fix 2010-04-22 21:43:03 +04:00
Dmitry Jemerov
30c7c4fdf9 some test for 'override methods' 2010-02-09 13:01:19 +03:00