Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 5788

Python

typing.runtime_checkable

Enable an isinstance test for a protocol using the presence of members.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

typing.Self

Refer to the current class as specialized for the receiver, so inherited fluent methods preserve the subclass in static analysis.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

typing.Tuple — tuple type annotations

typing.Tuple describes tuple element types. Deprecated since Python 3.9, it should be replaced with tuple[...] in new code.

Basic · Python 3.14; repository image, production runtime not attested
Python

typing.TypeAlias

Mark an assignment as a type alias for static analysis.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

typing.TypedDict

Describe a dictionary schema with known string keys and a separate value type for each.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

typing.TypeGuard

Give a Boolean predicate a positive narrowing rule for its first positional argument in static analysis.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

typing.TypeVar

Relate parameter and result types through one variable inferred by a type checker.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

typing.Union

Represent values that belong to at least one member type.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

unittest.defaultTestLoader — shared test loader

unittest.defaultTestLoader is a ready-made TestLoader instance that builds test suites without creating a separate loader.

Basic · Python 3.14; repository image, production runtime not attested
Python

unittest.expectedFailure

Marks a known failing test so an observed failure is recorded as expected.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

unittest.main

Discovers tests from a module and runs them using a configured runner.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

unittest.skip

Marks a test to be skipped unconditionally and records the reason.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

unittest.skipIf

Skips a test when its supplied condition is true.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

unittest.TestCase

Defines a fixture-backed test with assertion methods and a lifecycle managed by the test runner.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

unittest.TestLoader

Builds test suites by discovering methods according to the configured name prefix.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

unittest.TestResult.errors — recorded test errors

`unittest.TestResult.errors` pairs the object associated with each error with a formatted traceback string. With the default `failureException` (`AssertionError`), assertion failures in test methods not marked with `expectedFailure` are recorded separately in `failures`.

Basic · Python 3.14; repository image, production runtime not attested
Python

unittest.TestSuite

Groups test cases and nested suites for one run, accumulating results in the supplied result object.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

unittest.TextTestRunner

Runs a case or suite and writes a human-readable test report to the configured text stream.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Program architecture

Separating computation from input and output lets a program rule be tested without opening files.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Asynchrony and concurrency

An event loop interleaves tasks when the running coroutine suspends while waiting for a result.

Intermediate · Python 3.14; repository image, production runtime not attested
Python

Collections and keys

Choose a sequence for indexed positions, a set for unique hashable members and a dictionary for key-to-value lookup.

Intermediate · Python 3.14; repository image, production runtime not attested