datetime.time() is offset-naive but has been used in datetime.combine() operations with potentially offset-aware operands, resulting in TypeErrors. Now time() gets the tzinfo of the other operand, which should be backwards-compatible (as offset-naive times also have the tzinfo paramter, it's just set to None) while ensuring coherent timezone settings if tzinfo is set.
datetime.time() is offset-naive but has been used in datetime.combine() operations with potentially offset-aware operands, resulting in TypeErrors. Now time() gets the tzinfo of the other operand, which should be backwards-compatible (as offset-naive times also have the tzinfo paramter, it's just set to None) while ensuring coherent timezone settings if tzinfo is set.