Use explicit imports by frangio · Pull Request #4399 · OpenZeppelin/openzeppelin-contracts (original) (raw)

Note that because of Solidity override resolution (override(A, B)) sometimes it's necessary to import an identifier even if it's only used for that.

When both an interface and implementation are required, I've reused the same file for the import statement, as in:

import {IGovernor, Governor} from "../../governance/Governor.sol";