You would want to check with the CRA on this issue. You might not even need to file a Canadian return depending on you residency status. https://www.canada.ca/en/revenue-agency/corporate/contact-information/international-tax-non-resident-enquiries.html
CRA: Determining your residency status https://www.canada.ca/en/revenue-agency/services/tax/international-non-residents/information-been-mo...