Returns the current ABC cache token. The token is an opaque object (supporting equality testing) identifying the current version of the ABC cache for virtual subclasses. The token changes with every call to ``register()`` on any ABC.
()
| 2 | |
| 3 | |
| 4 | def get_cache_token(): |
| 5 | """Returns the current ABC cache token. |
| 6 | |
| 7 | The token is an opaque object (supporting equality testing) identifying the |
| 8 | current version of the ABC cache for virtual subclasses. The token changes |
| 9 | with every call to ``register()`` on any ABC. |
| 10 | """ |
| 11 | return ABCMeta._abc_invalidation_counter |
| 12 | |
| 13 | |
| 14 | class ABCMeta(type): |
no outgoing calls
no test coverage detected
searching dependent graphs…