Level 1 : What is the purpose of the __init_subclass__ method in Python?

Author: IndraD | Tags: __init_subclass__ | 1859+ Python FAQs | Share
else | dataframe-and-series-objects | file-handling | __all__-attribute | __future__ | print | global-variable | boolean | floats | data-structures-in-python | set-operation | operator-overloading | generators | conditional-statement | raise-statement | membership-operators-(in,-not-in) | copy | format | precedence | comparison | generator | error-handling | reading-and-writing-files | magic-method | global | random-function | asyncio-module | choice | list-vs-tuple | basic | counter-function | arithmetic-expression | list-methods-and-slicing | assignment-operator | managing-directories-with-os-and-shutil | objects | package-management | global-keyword | multiple-inheritance | generators-in-python | logical-operation | data-type | multiple-except-blocks | control-flow | matrix | difference-between-threads-and-processes | fabs-function | map-function | numeric | operator-and | gil | expand-tab | logical-operator | comment | logical-operator | goto-function | exception-handling | call | else-statement | center | python-module | docstring | strings | factorial-function | syntax-error | loop-control-statements | loop | update | stack | data-structure | defining-functions | opening-files-(open()) | exponentiation | formal-and-actual-parameter | context-manager | async | string-iteration | function-and-scope | threading | working-with-dates-and-times | escape-operator | aggregating-data-with-functools.reduce() | for | class-and-inheritance | design-principle | dictionary-comprehensions | syntax-error | string-methods | functional-programming | numpy | parameter | reading:-read(),-readline(),-readlines() | namespace | mapping-function | encapsulation | matplotlib | descriptors | sorted | feature | memory-management | string-slicing | math | complex | overriding-methods | anchors-(^,-$) | handling-missing-values-(fillna,-dropna) | mathematical-function | using-lists-as-stacks | global-variable | methods | binary | nested-loop | built-in | identity-operators-(is,-is-not) | regular-expressions | set | operators | writing:-write(),-writelines() | max-min | sorting-and-ranking | head-and-tail | unit-testing | constructor | complex-number | class-decorators | floating-point-precision | boolean-and-non-boolean | scientific-notation | join | default-mutable-argument | operand | why-use-multiprocessing-over-threading?-(gil) | recurssion | odd-number | identity-operator | list-indexing | syntaxerror | python-operators | deep-copy | syntax | literal-characters-and-special-characters | loops | encoding | input | list-mutation | sum() | method | data-type | bitwise | input-function | min-function | python-repl | control-flow | exception-handling | rollback | version-check | comprehension | using-the-threading-module | type_conversion | indentation | class | function-argument | static-method | exception | immutability | using-yield-in-functions | mysql | using-map()-for-transformations | polymorphism | list-operation | benefit | string-method | multithreading | error | compute | method-overloading | turtle | string-concatenation | dictionary | booleans | string-formatting | arbitrary-arguments-(*args,-**kwargs) | assert | functional-programming | round | match | init | random | debugging | using-os-and-pathlib-modules | string-formatting | interpreter | software-design | zfill-function | python-history | array | expression | sys | data-type-conversions | recursion | thread-safe-data-structures-(queue.queue) | data-structure | filtering-and-indexing | working-with-binary-files-(rb,-wb) | directory-operations | statement | tuple-methods | while-and-for-loop | iterator | math-copysign | swapping | typeerror | variable | file | datetime.date,-datetime.time,-datetime.datetime | module | file_handling | immutable-data-type | command-line-parsing | built-in-function | implementation | bitwise-operator | frozenset | class-and-instance-variable | test-discovery | list-comprehension | file-handling | lists | built-in-function | decimal | list-slicing | heap-memory | dicts | print-statement | sorting | append | matrix-list-comprehension | regex | list,-set,-and-dictionary-comprehensions | touples | yield | precedence-and-associativity | slice | filter-function | formatting-with-strftime | overflow | while-loops | enumerate() | asyncio | advanced-file-operations | virtual-environment | round-function | pandas | type-conversion | walking-through-directories-using-os.walk() | reading-and-writing-large-files-efficiently | staticmethod | inherit | thread-synchronization | list-join | introduction-to-python | pep | operator-or | zip | working-with-file-paths | slicing | error-handling | dictionary-methods | joining-and-merging-dataframes | data-types | application | tuple | binary-operation | collections | indexing:-loc-vs-iloc | iterators | thread | loop-control | python-django | classes | function | operator | condition | mathematics | lambda-function | built-in-modules | zip-function | filter | type-conversion | introduction-to-multiprocessing | memory | multiprocessing | higher-order-function | sys-module | sum-function | version | list-comprehension | with-statement | type-conversion-and-casting | data_structure | virtual-environment | import-method | namedtuple | while-loop | def | decorator | using-join()-and-is_alive()-methods | string-manipulation | keyword | object-attribute | iterable | id-function | string-slicing | list-method | conversion | pseudocode | mutable | collection | library | logical-operators | list-comprehensions | multiple-inheritance | name-mangling | lambdas | attribute | quantifiers-(*,-+,-?,-{}) | invalid-list | using-assertions-(assertequal,-assertraises) | split | postfix | boolean-masking | creating-and-starting-threads | lambda-functions | parsing-with-strptime | pass | regular-expression | shallow-copy | integer | intering | operations | bitwise-operator | lambda | arithmetic-operation | string-method | python-syntax-and-structure | conditional-statement | tuples | single-inheritance | return-statement | raise | identifier | python_version | oop | __init_subclass__ | identity-operator | time-series-with-pandas | datatype | introduction-to-threads | assignment-operators | string | oops | working-with-temporary-files-using-tempfile | access-modifier | datetime | counter | tuple-unpacking | range | using-else-and-finally | inheritance | pickling--unpickling | control-statement | while-else-loop | python | sets | dictionaries | indexing | input-function | int | key-value-pairs | destructor | default-arguments | functions | installation | data-structures | conditional-statements | creating-custom-modules | integers | list | class-and-object | min-max-function ...