diff --git a/rules/python/shared/lang/instance.yml b/rules/python/shared/lang/instance.yml new file mode 100644 index 00000000..82219d6a --- /dev/null +++ b/rules/python/shared/lang/instance.yml @@ -0,0 +1,13 @@ +type: shared +languages: + - python +patterns: + - $($<...>) + - | + class $<_>($): + def $<_>($self$<...>): + - | + def $<_>($<...>$$<_>: $$<...>): +metadata: + description: "Python CLASS instance" + id: python_shared_lang_instance